Topics
PHP
About this topic: Articles tagged __TAG__
Showing 345 articlesRelated tags
Topics
Articles
Showing 345 articles
How-tos
How to Perform Static Code Analysis in PHP
This tutorial shows how to perform static code analysis in PHP.
↗
How-tos
How to Return User Quota With PHP in Linux
This tutorial teaches how to return user Quota with PHP in Linux OS.
↗
How-tos
How to Get the Current Date and Time in PHP
This article introduces how to get the current date and time in PHP. It includes date() function, time() function, date_default_timezone_set() function, format() function and …
↗
How-tos
How to Write Into a File in PHP
This article introduces how to write into a file in PHP. It includes file_put_contents() function, fopen() function, fwrite() function and fclose() function.
↗
How-tos
How to Check if a String Starts With a Specified String in PHP
This article introduces how to check if a string starts with a specified string in PHP. It includes substr() function, strpos() function and strncmp() function
↗
How-tos
How to Use cURL to Get JSON Data and Decode JSON Data in PHP
This article introduces how to use cURL to get JSON data and decode JSON data in PHP. It includes curl_init() function, curl_setopt() function, curl_exec() function and …
↗
How-tos
How to Parse a JSON File in PHP
This article introduces how to parse a JSON file in PHP. It includes file_get_contents() function.
↗
How-tos
How to Convert One Date Format to Another in PHP
This article introduces how to convert one date format to another in PHP. It includes date() function, strtotime() function, createFromFormat() function and format() function.
↗
How-tos
How to Show a Number to Two Decimal Places in PHP
This article introduces how to show a number to two decimal places in PHP. It includes number_format() function, round() function and sprintf() function
↗
How-tos
How to Remove Empty Array Elements in PHP
This article introduces how to remove empty array elements in PHP. It includes array_filter() function, array_diff() function and unset() function.
↗
How-tos
How to Delete an Element From an Array in PHP
This article introduces how to delete an element from an array in PHP. It includes unset() function, array_splice() function and array_diff() function
↗
How-tos
How to Convert a Date to a Timestamp in PHP
This article introduces how to convert a date to a timestamp in PHP. It includes strtotime() function, strptime() function, getTimestamp() function and format() function.
↗
How-tos
How to Get the Current Year in PHP
This article introduces how to get the current year in PHP, for example, date() function, strftime() function and by using the DateTime object.
↗
How-tos
How to Get the Last Character of a String in PHP
This article introduces how to get the last char of a string in PHP. It includes substr() function, direct string access method and for loop method.
↗
How-tos
How to Find the Foreach Index in PHP
This article introduces how to find the foreach index in PHP.
↗
How-tos
How to Convert DateTime to String in PHP
Different ways of converting DateTime to string using PHP functions, like Using format() of DateTime class, using date_format() method.
↗
How-tos
How to Calculate the Difference Between Two Dates Using PHP
Calculating the differences between two dates using PHP version less than 5.3 and more than 5.3
↗
How-tos
How to Create a Folder if It Doesn't Exist in PHP
This article introduces how to create a new folder programmatically in PHP if it doesn't exist.
↗
How-tos
How to Determine the First and Last Iteration in a Foreach Loop in PHP
Different ways of getting the first and last item in a foreach() loop using different versions of PHP, including counter in all PHP versions and array_key_first() and …
↗
How-tos
How to Properly Format a Number With Leading Zeros in PHP
Different ways of formatting a number with leading zeros using several functions in PHP.
↗
How-tos
How to Create a PHP Function With Multiple Returns
Possibility of having multiple returns in a PHP function using several approaches
↗
How-tos
How to Remove All Spaces Out of a String in PHP
This article introduces how to strip all spaces out of a string in PHP. It includes str_replace() function and preg_replace() function.
↗
How-tos
Examples on Using the SoapClient in PHP
In this article, we present six examples that show you how to work with WSDL files using PHP SoapClient. Before that, we'll explain how you can get the function and types from a …
↗
How-tos
PHP Warning Invalid Argument Supplied for foreach()
This tutorial demonstrates how to fix the PHP warning invalid argument supplied for foreach().
↗
No articles found
Try clearing the filters.