LOGO KARANDO.COM LOGO KARANDO.COM
 

FCT_STRING_AFTER, FCT_STRING_AFTER_LAST

Retour Librairie

function fct_string_after ($this, $inthat)
{
    if (!is_bool(strpos($inthat, $this)))
    return substr($inthat, strpos($inthat,$this)+strlen($this));
};

function fct_string_after_last ($this, $inthat)
{
    if (!is_bool(fct_strrevpos($inthat, $this)))
    return substr($inthat, strrevpos($inthat, $this)+strlen($this));
};

La function fct_string_after permet de découper des chaine et de recuperer la partie final de la chaine apres le separateur.
Exemple:

after ('@', 'karando@karando.com');
returns 'karando.com'
from the first occurrence of '@'


Valid XHTML 1.0!