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


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. // for PHP 5.2
  2. $level = mb_strrpos( $value, "¬", 0, 'UTF8' );
  3.  
  4. // PHP4 safe
  5. $level = mb_strrpos( $value, "¬");

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.