×
Home
Jobs
Tools
Coding Ground
Current Affairs
UPSC Notes
Online Tutors
Whiteboard
Net Meeting
Tutorix
Login
Packages
Categories
Java
JSP
iOS
HTML
Android
Python
C Programming
C++ Programming
C#
PHP
CSS
Javascript
jQuery
SAP
SAP HANA
Data Structure
RDBMS
MySQL
Mathematics
8085 Microprocessor
Operating System
Digital Electronics
Analysis of Algorithms
Mobile Development
Front End
Web Development
Selenium
MongoDB
Computer Network
General Topics
Library
Videos
Q/A
eBooks
Login
Library
Videos
eBooks
Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Selected Reading
UPSC IAS Exams Notes
Developer's Best Practices
Questions and Answers
Effective Resume Writing
HR Interview Questions
Computer Glossary
Who is Who
Alok Prasad
has Published
52
Answers
Differentiate between exception and error in PHP
PHP
Programming
Server Side Programming
Alok Prasad
Published on 02-Jul-2019 18:46:25
Let's discuss the differences between errors and exceptions.Recovering from Error is not possible. The only solution to errors is to terminate the execution. Whereas we can recover from Exception by using either try-catch blocks or throwing an exception back to the caller.You will not be able to handle the Errors ...
Read More
Is PHP compiled or interpreted?
PHP
Programming
Server Side Programming
Alok Prasad
Published on 02-Jul-2019 18:37:59
Basically, PHP is interpreted but PHP is compiled down to an intermediate bytecode that is then interpreted by the runtime Zend engine.PHP compiler is responsible forconvert the code to a bytecode that can be used by the runtime engine.resolve functions, names and classes namescreating a symbol tablePHP Interpreter doesGoes through ...
Read More
What is the use of ini_set() in PHP?
PHP
Programming
Server Side Programming
Alok Prasad
Published on 02-Jul-2019 18:33:29
PHP allows the user to modify some of its settings mentioned in php.ini using ini_set(). This function requires two string arguments. The first one is the name of the setting to be modified and the second one is the new value to be assigned to it.Parametersvar nameNot all the available ...
Read More
What do we mean by hash functions in PHP?
PHP
Programming
Server Side Programming
Alok Prasad
Published on 02-Jul-2019 18:27:58
A hash function is any function that can be used to map data of arbitrary size to data of a fixed size. The values returned by a hash function are called hash values, hash codes, digests, or simply hashes.Syntaxstring hash( string $algo , string $data [, bool $raw_output = FALSE ...
Read More
What is the meaning of a Persistent Cookie in PHP?
PHP
Programming
Server Side Programming
Alok Prasad
Published on 01-Jul-2019 18:31:20
A persistent cookie is a cookie that is stored in a cookie file permanently on the browser's computer. As we know cookies are small text files which are as a matter, of course, temporary cookies which stored only in the browser's memory. When the browser is closed, temporary cookies will ...
Read More
What is Exception Handling in PHP ?
PHP
Programming
Server Side Programming
Alok Prasad
Published on 01-Jul-2019 18:20:02
An exception is a problem that arised during the execution of a program. During the execution of a program when an exception occurs, code following the statement will not be executed, and PHP will attempt to find the first matching catch block. If an exception is not caught, a PHP ...
Read More
What is .htaccess in PHP?
PHP
Programming
Server Side Programming
Alok Prasad
Published on 28-Jun-2019 19:14:08
.htaccess is a configuration file for use on web servers running on the web apache server software. when a .htaccess file is placed in a directory which in turn loaded via the Apache web server, then the .htaccess file detected and executed by the Apache server software. .htaccess files can be ...
Read More
Program to find how many times a character appears in a string in PHP
PHP
Programming
Server Side Programming
Alok Prasad
Published on 28-Jun-2019 18:59:38
Example Live Demo<?php $str = "welcome to tutorials point"; $str = str_replace(" ", "", $str); $arr = str_split($str); foreach ($arr as $key =>$val){ if (!isset($output[$val])){ $output[$val] = 1; } else{ ...
Read More
What is traits in PHP?
Object Oriented Programming
PHP
Programming
Alok Prasad
Published on 28-Jun-2019 18:41:29
In 5.4 PHP version trait is introduced to PHP object-oriented programming. A trait is like class however it is only for grouping methods in a fine-grained and reliable way. It isn't permitted to instantiate a trait on its own. Traits are introduced to PHP 5.4 to overcome the problems of ...
Read More
Is there any advantage to using __construct() instead of the class's name for a constructor in PHP?
PHP
Programming
Server Side Programming
Alok Prasad
Published on 28-Jun-2019 18:27:57
Yes, there are several advantages to using the magic function __construct() instead of the class's name. Those are listed below −The magic function __construct is introduced in PHP 5.4. One advantage of using __construct() over ClassName() as a constructor is if you change the name of the class, you don't ...
Read More
1
2
3
4
5
6
Next
Advertisements
Print
Add Notes
Bookmark this page
Report Error
Suggestions
Save
Close
Dashboard
Logout