User Defined functions
A function’s syntax is : function function_name($argument1, $argument2……$argumentn) { statement1; statement2; statementn; } A function […]
A function’s syntax is : function function_name($argument1, $argument2……$argumentn) { statement1; statement2; statementn; } A function […]
Values are returned by using the optional return statement. Any type may be returned, including […]
In PHP, the & symbol, when prefaced to a variable, tells the parser to pass […]
You can also give a function access to an externally created variable by declaring it […]
As you progress in your use of PHP programming, you are likely to start building […]
Conside the following example for string replacement in php
ucwords — Uppercase the first character of each word in a string. Example
Sometimes there are situations where we want to pad 0 to our numbers, suppose one […]
The nl2br() function inserts HTML line breaks (<br> or <br />) in front of each […]
In any directory there are many files and directories. In order to show them we […]
require_once() will include the file once in our program. This tells php that if a […]
You can gather a lot of information about a person’s computer by using $_SERVER[‘HTTP_USER_AGENT’]. This […]
When including php files, if the files are nested inside on and another file, certainly […]
similar_text calculates the similarity between two strings implementing the World’s Best Algorithms by Oliver (ISBN […]
strlen() function is used to get string length. Syntax : int strlen(string $string) Returns the […]
function_exists() function_exists — Return TRUE if the given function has been defined Syntax Example Output