php logo
Creating and handling dates with PHP date

Next, we will see how to use PHP’s date function and how to format it to be displayed: Content: Introduction In PHP we can both create and format a date using the date() function. Its syntax is as follows: date ( string $format [, int $timestamp = time() ] ) : string As you can […]

Leer mas..
php logo
PHP using namespaces

What are namespaces? In their most widely accepted definition, namespaces are a way to encapsulate elements.

Leer mas..
php logo
The header() function and redirection in PHP

header function is generally used to redirect to other page, but has other functionalities, let's delve on this

Leer mas..
php logo
PHP ternary operator

The ternary operator is another conditional operator, but it is worth putting it separately. It performs a similar action to if else.

Leer mas..
php logo
Using file_get_contents() in PHP

The function file_get_contents is used to read a file into a string, and it returns [value]false[/value] if it fails

Leer mas..
la categoria en-php tiene 94 post/s
Last 4 post in same category