Return to Snippet

Revision: 15961
at July 21, 2009 16:00 by sveggiani


Updated Code
// for PHP 5.2
$level = mb_strrpos( $value, "¬", 0, 'UTF8' );

// PHP4 safe
mb_internal_encoding("UTF-8");
$level = mb_strrpos( $value, "¬");

Revision: 15960
at July 21, 2009 15:59 by sveggiani


Initial Code
// for PHP 5.2
$level = mb_strrpos( $value, "¬", 0, 'UTF8' );

// PHP4 safe
mb_internal_encoding("UTF-8");
$level = mb_strrpos( $value, "¬");

Initial URL


Initial Description


Initial Title
returns position of the last ocurrence of a character in a string (PHP4 & PHP5)

Initial Tags


Initial Language
PHP