PHP Redirect to Another Page

Do you want to redirect your page to another page in PHP? Then I will show you how you can make redirection from current page to another page in php….

Read more »

Create CSV from PHP Array

We will use fputcsv() function to create a CSV from PHP array. Look at the code below. Create CSV from PHP Array $data = array( array(45, 32, 64, 78, 47),…

Read more »

Get Current Page URL in PHP

Do you want to get the current page URL in PHP then check this code below? In this trick, we will use the $_SERVER super global variable and get the…

Read more »

Count Script Execution Time in PHP

If you want to check how much time your code is taking then you have to write script execution time functionality. We will use microtime() function to check execution time….

Read more »

Inline if else Condition in PHP – (with double ??)

In this trick, I will show you how you can use double ?? operator (also called “null coalescing operator“) to make inline if else condition more clean and useful. We…

Read more »