note 39354 added to function.substr

From: Date: Sun, 25 Jan 2004 19:32:16 +0000
Subject: note 39354 added to function.substr
Groups: php.notes 
Request: Send a blank email to php-notes+get-64171@lists.php.net to get a copy of this message
For those of you who are used to Java: <? // string substring(string str, int start, int end) function substring($str, $start, $end) { $subset = substr($str, $start, ((strlen($str)-2)-$end)); return $subset; } /* In Java, the end is the last index number minus 1 to go to. To be more specific on use: string substring(string str, int beginIndex, int endIndex) */ ---- Manual Page -- http://www.php.net/manual/en/function.substr.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+39354 Delete -- http://master.php.net/manage/user-notes.php?action=delete+39354&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+39354&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#64171) next »