Home
PHP
Chart
Class
Components
Cookie Session
Data Structure
Data Type
Date
Design Patterns
Development
DNS
Email
File Directory
Form
Functions
Graphics Image
HTML
Language Basics
Login Authentication
Math
MySQL Database
Network
Operator
PDF
Reflection
Statement
String
Utility Function
Web Services SOAP WSDL
XML
array_pad « Data Structure « PHP
PHP
Data Structure
array_pad
1.
Add new values to the beginning of the array by using a negative value for $size:
2.
An array that is padded from the front
3.
Setting an Array's Size: array array_pad(array $input, int $size, mixed $value)
4.
Using array_pad() with associative arrays
5.
array_pad 1
6.
array_pad 2
7.
array_pad 3
8.
array_pad() function expands an array to a precise size, padding it with a default value.
9.
Pad array to the specified length with a value