Questions tagged as 'substr'

4
answers

Ignore the last characters of a string in PHP

Good morning, I'm doing the INSERT in a table of the database in two fields, one that is the username and another is the password. At the moment both fields have the same content, for example USER | PASSWORD [email protected] [email protected]...
asked by 12.03.2018 / 20:23
2
answers

Remove PHP text string - substr

If the substring nomenclature is: string substr ( string $string , int $start [, int $length ] ) How do I tell him he has to pick up the start string until he finds a "." of the extension? That is: if we have "cadena.php", extract only "...
asked by 13.12.2017 / 12:21