note 40446 added to function.strpos

From: Date: Thu, 04 Mar 2004 02:29:36 +0000
Subject: note 40446 added to function.strpos
Groups: php.notes 
Request: Send a blank email to php-notes+get-66217@lists.php.net to get a copy of this message
Looking for a new-line or carriage return in your string, esp. after a function call to wordwrap(), for example? This won't work: $line_break_pos = strpos( $whole_text, '\n' ); This will work: $line_break_pos = strpos( $whole_text, chr(10) ); Same for function strstr and perhaps others. ---- Manual Page -- http://www.php.net/manual/en/function.strpos.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+40446 Delete -- http://master.php.net/manage/user-notes.php?action=delete+40446&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+40446&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#66217) next »