Topics
PHP
About this topic: Articles tagged __TAG__
Showing 345 articlesRelated tags
Topics
Articles
Showing 345 articles
How-tos
Maximum Upload Size in PHP
Today's post will cover maximum upload size in PHP.
↗
How-tos
How to Check if Array Contains a Value in PHP
This tutorial demonstrates how to check if array contains a particular value using a built-in function in PHP.
↗
How-tos
How to Update PHP 7.x to 7.4 on CentOS
A historical overview of preparing for and evaluating PHP 7.4 upgrade approaches on CentOS 7, with guidance for version checks and application compatibility.
↗
How-tos
How to Push Items to Associative Array in PHP
In this tutorial, we will see how you can add items or elements into an associative array in PHP.
↗
How-tos
How to Convert String to Date and Date-Time in PHP
Learn how to parse date strings in PHP with strtotime(), date(), DateTime::createFromFormat(), and date_create_from_format(), including format, timezone, and error-handling …
↗
How-tos
How to Set Session Timeout in PHP
Learn how to track PHP session activity and enforce a 30-minute inactivity timeout on each request.
↗
How-tos
How to Sanitize Input in PHP
Choose PHP input handling for the field, output context, or database operation instead of relying on a universal sanitizer.
↗
How-tos
isset() vs. empty() Functions in PHP
Compare isset() and empty() in PHP, see how they treat common values, and use them to check submitted form fields.
↗
How-tos
File Download With CURL in PHP
Download files in PHP with the cURL extension. Check availability, stream responses to disk, and handle transfer and HTTP errors.
↗
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 Check if File Exists in PHP
This article explains how to check if a file exists in PHP using the file_exists() function. Learn to handle file and directory checks effectively with practical examples. Enhance …
↗
How-tos
8 Best PHP Code Obfuscators
This tutorial demonstrates the eight best code obfuscators in PHP.
↗
How-tos
How to Create a New Line in PHP
Choose the right PHP line break for text strings, platform-native files, or HTML output. See how ` `, PHP_EOL, , and CRLF behave.
↗
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 Get Current Directory Name and Path in PHP
This tutorial introduces how to get the current directory name and path in PHP. Learn various methods including getcwd(), __DIR__, and dirname() to efficiently manage file paths in …
↗
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 Remove the Last Character From a String in PHP
This article introduces how to remove the last character from a string in PHP. It includes the rtrim() function and the substr() function. Discover the best methods for string …
↗
How-tos
How to Detect Mobile Devices in PHP
Learn to classify mobile requests in PHP with Mobile Detect or a user-agent pattern.
↗
How-tos
How to Use Foreach Loop in Multidimensional Array in PHP
This tutorial introduces how to use a foreach loop in a multidimensional array in PHP.
↗
How-tos
Enumerations in PHP
This tutorial will teach how to create and use enumerations in PHP. You'll learn how to emulate an enumeration with abstract classes. Also, you'll learn how to work with native …
↗
How-tos
New York Timezone in PHP
Set the America/New_York timezone in PHP and format a New York date or time with date().
↗
How-tos
How to Redirect in PHP
This tutorial demonstrates how to redirect a user from a page to a different page in PHP
↗
How-tos
How to Convert a String to a Number in PHP
Convert numeric strings to integers or floats in PHP with explicit casts, intval(), floatval(), or settype().
↗
How-tos
How to Create Array of Objects in PHP
This article introduces how to create an array of objects in PHP
↗
No articles found
Try clearing the filters.