Posted By

sveggiani on 07/21/09


Tagged

strings utf-8


Versions (?)

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


 / Published in: PHP
 

  1. // for PHP 5.2
  2. $level = mb_strrpos( $value, "¬", 0, 'UTF8' );
  3.  
  4. // PHP4 safe
  5. $level = mb_strrpos( $value, "¬");

Report this snippet  

You need to login to post a comment.