php Functions
Php has more function which are listed below and small description also mentioned .
==> foreach (food as element => innerarray)
==> include "header.php"
==> require "header.php" --> It kill hte page when the require statement not give
==> reqiore-once 'header.php'--> It will run only one time.
==> preg-match ('/word/', string)-->to check the world in string
==> $_GET['var name']
==> strpos(string,find string)
==> substr-replace(string, startpos, end pos)
==> str-replace(replace for, replace at, string)
==> str-ireplace( replace for , replace at , string)
Forums actions
$_SERVER[HTTP-HOST];
$_SERVER[HTTP-CLIENT_IP];
$_SERVER['HTTP-X_FORWARDED_FOR'];
$_SESSION
Set session
session-start();
$_SESSION['name']='alex';
Unset session
unset($SESSION['name']);
No comments:
Post a Comment