Lines Matching refs:array
327 public static function lpad(array &$array, $length, $value) { argument
328 while (count($array) < $length) {
329 array_unshift($array, $value);
342 public static function rpad(array &$array, $length, $value) { argument
343 while (count($array) < $length) {
344 array_push($array, $value);
399 public static function fromArray(array $array = null) { argument
403 if (empty($array)) {
407 for ($i = 0; $i < count($array); $i++) {
408 $result .= $array[$i];
478 public static function fromByteArray(array $array = null) { argument
482 if (empty($array)) {
486 for ($i = 0; $i < count($array); $i++) {
487 $result .= chr($array[$i]);
499 * @param array $array the byte array to read from
503 public static function readShort(array $array, $position) { argument
505 if ($position + 2 > count($array) - 1) {
510 array_slice($array, $position, 2)
521 * @param array $array the byte array to read from
525 public static function readInt(array $array, $position) { argument
527 if ($position + 4 > count($array) - 1) {
532 array_slice($array, $position, 4)
543 * @param array $array the byte array to read from
547 public static function readLong(array $array, $position) { argument
549 if ($position + 8 > count($array) - 1) {
554 array_slice($array, $position, 8)