phpInsert element to an array on a certain position
array_splice($arr, 2, 0, $insert);ctrl + c| array_splicereplaces or inserts parts of array | $arrarray to insert new value to | 
| 2,position to insert new value at (starts from  | 0,don't delete any elements from original array | 
| $insertvalue to insert | |
Usage example
$arr = [1, 2, 3];
array_splice($arr, 2, 0, 'a');
print_r($arr);output
Array
(
    [0] => 1
    [1] => 2
    [2] => a
    [3] => 3
)More of Php
- Call static method by variable name
- Disable notices ("Undefined variable", “Undefined index”, "Undefined offset”...)
- Request a URL with curl
- Enable errors display
- Get last element of array
- Delete an element from array by value
- Format number with leading zeros
- Get current URL
- Create directory recursively
- Check if string contains specific substring
See more codes...