php logo
PHP switch statement 

Sometimes we want to compare the same variable with different values, and that’s where the PHP switch statement comes in. In the following example, we compare the variable $i with the values 0, 1, 2. switch ($i) { case 0: echo "i es 0"; break; case 1: echo "i es 1"; break; case 2: echo […]

Leer mas..
php logo
PHP unlink function

PHP unlink fulfills the function of deleting a file.

Leer mas..
php logo
PHP str_replace function

The PHP function str_replace will replace all occurrences of a given text or texts ($search) in a string ($subject) or array of strings with a string given as a parameter/s ($replace).

Leer mas..
php logo
PHP trim function

Today we will see PHP trim which does this function where I can use it. This function removes white space from the beginning and end of a string by default.

Leer mas..
php logo
PHP faker package

In some projects, you may need to populate your database with information. For this purpose, you can use the Faker package, which you can find on the main Composer Packagist repository. These days, I believe it's almost necessary to use Composer in your project. You can learn more about Composer in this other post: https://blastcoding.com/que-es-composer/

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