PHP Tips

Get current page URL in PHP

Use the PHP $_SERVER Superglobal Variable.

Read More

PHP foreach Loop

The foreach loop statement only works with arrays and objects.

Read More

PHP Date format

The date() function formats a local date/time.

Read More