How to make a masterathome from master-at-home? Write an example expression. Thank!
1 answer
<?php $str = 'master-at-home'; echo str_replace( '-', '', $str ) . "\n"; echo $str . "\n"; echo preg_replace( '=\-=', '', $str ); http://sandbox.onlinephpfunctions.com/code/5cbebba223e42deb87259c6dab7ec1639d99469c
- oneIt would seem, what is bad str_replace ()? - Vladimir Martyanov
- @ Vladimir Martiyanov, nothing - who is used to it and what’s the first thing that came to mind; added in response ... - Roman Grinyov
|