Tag

PHP

PHP unset()

The PHP unset() function can be written as the below syntax. The output: CodedTag.com Tutorials Notice: Undefined variable: var in D:\xampp\htdocs\site-1\index.php on line 5 The unset() is a built-in PHP function used to destroy or delete the given variable. This function doesn’t return anything because it is a void type, which means there is no

Variadic Functions

The PHP variadic are the functions that accept more than one argument according to the passed spread operator … in the parameter. The basic expression of the variadic function would be like the below. An Overview for PHP Variadic Functions The PHP variadic functions are accepting the three dots operator to define unlimited arguments when

array_change_key_case

The basic syntax for the array_change_key_case in PHP: The array_change_key_case is a built-in PHP function used to convert the array keys into upper case or lower case and that can be done by using the flag argument. Moreover, the basic expression of the array_change_key_case callback would be like the below. The function arguments. The default

PHP strict_types

PHP type declarations or strict_types is a directive to use the strict mode for PHP type hinting which allows us to add a strict typing for function arguments values. And that can be done using the following PHP directive. declare( strict_types=1 ); In the following section, you will learn how to use the PHP strict_types

array_chunk

The PHP array_chunk syntax would be like the below. The output: Array ( [0] => Array ( [0] => Ahmed [1] => Khaled [2] => Mohamed ) [1] => Array ( [0] => Tarek [1] => Peter [2] => Michael ) [2] => Array ( [0] => Celinia [1] => Dalida ) ) The PHP