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), …
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), …
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 …
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. …
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 …