If you want to get last week dates using php, that can be get from the following example. Continue reading PHP get last week date
How to add new element to an array using php.array_push() php core function can be use for this.It will adding new element to ad array.
Continue reading PHP add element to an array
How to get array size of the php.Simply php count() and sizeof() functions get array size. Continue reading PHP get array size
If you want to get duplicate values count in an array,this method can be use easily.It will display array values all count. Continue reading PHP get duplicate values count in an array
How can I find elements in an array using php.Here is a simple small example to find element an array.Youcan use php in_array() function to this.
Continue reading PHP find elements in an array
How to validate Email address using php.This can be easily done by php regular expressions. Here is a email validation example.Only you have to call to this validation function and it will return it true or false.
Continue reading PHP Validate Email Address
How to detect this is a iframe or not, using php.You can check the referrer to determine if a request came from a another page on your own site or from a third-party site, or if it was direct traffic.So $_SERVER[‘HTTP_REFERER’] can be use to this.
As noted this method is not foolproof, but may provide more information than your application currently receives.
Continue reading How can I detect iFrame using PHP
Sometimes when we using php, we want to convert php array to java script array.php array can be convert to java script easily.Here is a easy and best methods to do this.
PHP provides json_encode() function to convert PHP arrays into Java Script code.
Continue reading PHP array convert to Java Script array
How can I detect browser using php.You can use php server variable $_SERVER[‘HTTP_USER_AGENT’] for this.It will return about the user’s operating system, as well as their browser.It contents of the User-Agent header from the current request.
So simply you can echo this for more understand.
Continue reading PHP Detect Browser
How to send SMS via SMS Gateway in PHP.I found the sms gateway to do this.But it is gives only 25 free sms per account.But you can create email account and register the following web site and send sms.Only you have to use simple function and call to it with passing parameters.
Here is a web site to register free.