note 115701 added to function.array-splice

From: Date: Thu, 11 Sep 2014 13:08:02 +0000
Subject: note 115701 added to function.array-splice
Groups: php.notes 
Request: Send a blank email to php-notes+get-200411@lists.php.net to get a copy of this message
<?php function array_slice2( $array, $offset, $length = 0 ) { if( $offset < 0 ) $offset = sizeof( $array ) + $offset; $length = ( !$length ? sizeof( $array ) : ( $length < 0 ? sizeof( $array ) - $length : $length + $offset ) ); for( $i = $offset; $i < $length; $i++ ) $tmp[] = $array[$i]; return $tmp; } ?> ---- Server IP: 103.21.58.218 Probable Submitter: 27.251.23.56 ---- Manual Page -- http://php.net/manual/en/function.array-splice.php Edit -- https://master.php.net/note/edit/115701 Del: integrated -- https://master.php.net/note/delete/115701/integrated Del: useless -- https://master.php.net/note/delete/115701/useless Del: bad code -- https://master.php.net/note/delete/115701/bad+code Del: spam -- https://master.php.net/note/delete/115701/spam Del: non-english -- https://master.php.net/note/delete/115701/non-english Del: in docs -- https://master.php.net/note/delete/115701/in+docs Del: other reasons-- https://master.php.net/note/delete/115701 Reject -- https://master.php.net/note/reject/115701 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#200411) next »