Topics

PHP

About this topic: Articles tagged __TAG__

Showing 345 articles

Topics

Articles

Showing 345 articles

How-tos How to Echo or Print an Array in PHP This article introduces how to echo or print an array in PHP. It includes foreach loop, print_r() function and var_dump() 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 Convert a String to a Number in PHP This article introduces how to convert a string to a number in PHP. It includes inval() function, settype() function and explicit type casting. How-tos How to Convert an Integer Into a String in PHP This article introduces how to convert an integer to a string in PHP. 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 Pass Variables to the Next Page in PHP Different approaches on how to pass variables to the next page using PHP, like using GET and POST through HTML form, and using session and cookie. 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(). How-tos Question Mark Symbol in PHP This tutorial introduces the question mark ternary operator and discuss its use in PHP. How-tos PHP Variable in String This tutorial demonstrates how to mix a PHP variable with a string How-tos Difference Between the == and the === Comparison Operators in PHP This tutorial introduces the difference between the double equals and triple equals comparison operators in PHP. How-tos One Line if Statement in PHP This article introduce the one line if statement in PHP. How-tos Maximum Upload Size in PHP Today's post will cover maximum upload size in PHP. How-tos PHP ini_set Memory Limit We will perform two methods to set the memory limit in php. Then we will use a PHP script to set the memory limit in PHP. How-tos PHP Zip Extension This tutorial demonstrates how to install and use ZIP Extension in PHP.

← All topics