note 112578 added to function.stripos

From: Date: Mon, 01 Jul 2013 16:38:05 +0000
Subject: note 112578 added to function.stripos
Groups: php.notes 
Request: Send a blank email to php-notes+get-195421@lists.php.net to get a copy of this message
A handy function if you need to adjust layout based on whether or not a string contains descending letters: <?php function containsDescenders($text) { $descenders = array("g","j","p","q","y"); foreach ($descenders as $letter) { if (stripos($text,$letter) !== false) { return true; } } return false; } ?> ---- Server IP: 192.41.42.26 Probable Submitter: 108.40.78.179 ---- Manual Page -- http://php.net/manual/en/function.stripos.php Edit -- https://master.php.net/note/edit/112578 Del: integrated -- https://master.php.net/note/delete/112578/integrated Del: useless -- https://master.php.net/note/delete/112578/useless Del: bad code -- https://master.php.net/note/delete/112578/bad+code Del: spam -- https://master.php.net/note/delete/112578/spam Del: non-english -- https://master.php.net/note/delete/112578/non-english Del: in docs -- https://master.php.net/note/delete/112578/in+docs Del: other reasons-- https://master.php.net/note/delete/112578 Reject -- https://master.php.net/note/reject/112578 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#195421) next »