mirror of
https://github.com/namibia/awesome-cheatsheets.git
synced 2025-01-03 06:10:15 +00:00
removing php version
str_replace it's been around since php 4 ( https://www.php.net/manual/pt_BR/function.str-replace.php ) 😁
This commit is contained in:
parent
2137ac0559
commit
153d665c53
@ -17,7 +17,7 @@ var_dump($arr); // Print anything, with type hints for any value and sizes
|
||||
$string = 'Awesome cheatsheets';
|
||||
|
||||
str_contains($string, 'cheat'); // Find if the string contains the specified string (PHP >= 8.0)
|
||||
str_replace('Awesome', 'Bonjour', $string); // Replace all occurence (PHP >= 8.0)
|
||||
str_replace('Awesome', 'Bonjour', $string); // Replace all occurence
|
||||
strcmp($string, 'Awesome cheatsheets'); // Compare two strings
|
||||
strpos($string, 'a', 0); // Get position in the string
|
||||
str_split($string, 2); // Split the string
|
||||
|
Loading…
Reference in New Issue
Block a user