Query string is a small amount of data and URL address followed by “?” symbol along with form data if you want to transfer some extra information from browser to [ … ]
Category: PHP
Types of Variables Available In PHP
Variable: Variable is name of memory location used to store some information. PHP is loosely typed language that is why no need to provide data typed at the time of variable [ … ]
Encryption Function Supported by PHP
By this function we can encode and decode the input string it is divide into two types. 1. One way Encryption 2. Two way Encryption One way Encryption: By using [ … ]
Include
This concept is used to include a PHP script in another PHP script the available functions are., 1. include 2. include_once 3. required 4. required_once If we include the external [ … ]
Types of Errors In PHP
In php there are 4 different types of errors. 1. Notice 2. Warning 3. Fatal Error 4. Parse Error Notice: Notice is small information to the end user do not [ … ]
Slashes in PHP
addslashes: To add black slashes infront of single and double quotations. stripslashes: This is used to remove the back slashes infront of single and double quotations. <?php $str=”wel’come”; $str1=$str; echo addslashes($str1); [ … ]
Strings in PHP
strlen(): This function is used to get the length of string.<?php$str=”Welcome”echo strlen($str);?>Output: 7 ucwords: This function is used to convert the first characters of all words in a string into uppercase .<?php$str=”welcome [ … ]
Date and Time Functions of PHP
By these functions we get the current dates time information as time stamp. It returns output in the form of times stamp value. Times Stamp: It returns total number of seconds [ … ]
Array
Array is collection of heterogeneous element PHP is loosely typed language so we can store heterogeneous elements is array. The main difference between the normal variable and the array variable [ … ]
Types Of Datatypes
Datatype are used to specify the type of variable according to the assigned value. PHP is loosely typed language so there is no need to provide data types at the [ … ]