Skip to content
Software
Blog
About
Contact
Search
Menu
Software
Blog
About
Contact
Search
Search
How can I use a do-while loop in PHP? Example code:
Listen
$i = 0; do { echo $i . "<br>"; $i++; } while ($i < 10);
How can I use the curl_setopt_array function to set multiple options for a cURL session in PHP? Example code:
How can I use a conditional statement in PHP? Example code
How can I use the array_reverse function to reverse the order of an array in PHP? Example code:
How can I check if a string ends with a certain substring in PHP? Example code:
How can I read a CSV file in PHP? Example code:
How can I use a try-catch block in PHP? Example code:
How can I use the strrev function to reverse a string in PHP? Example code:
How can I use the copy function to copy a file in PHP? Example code:
How can I generate a random number in PHP? Example code
How can I read data from a JSON file using PHP? Example code:
How can I use the array_shift function to remove the first element from an array in PHP? Example code:
How to send SMS using PHP program (full code sample included)
How can I use the str_replace function to replace multiple substrings in a string in PHP? Example code:
How can I use the filesize function to get the size of a file in PHP? Example code:
How can I use the in_array function to check if an element exists in an array in PHP? Example code:
How can I format a number with commas in PHP? Example code:
How can I create a multidimensional array in PHP? Example code:
How can I use a foreach loop in PHP? Example code:
How can I use the fgetcsv function to read a CSV file into an array in PHP? Example code:
How can I use the curl_setopt function to set options for a cURL session in PHP? Example code:
How can I format a date in PHP? Example code:
Get User IP Address using PHP – Source Code + Demo
How can I calculate the difference between two dates in PHP? Example code:
How can I use the array_splice function to remove and replace elements in an array in PHP? Example code:
How can I add days to a date in PHP? Example code:
PHP Use Cases with Example Source Code
How can I calculate the sum of an array in PHP? Example code:
How can I use the array_push function to add an element to an array in PHP? Example code:
How can I sort an array in descending order in PHP? Example code:
How can I generate a random string in PHP? Example code: