ccreate array php
$array = array(
"foo" => "bar",
"bar" => "foo",
);
ccreate array php
$array = array(
"foo" => "bar",
"bar" => "foo",
);
php declare array
// sequential array
$arr = array(
'v1', // $arr[0] == 'v1'
'v2', // $arr[1] == 'v2'
'v3' // $arr[2] == 'v3'
);
// or (since PHP 5.4)
$arr = [
'v1', // $arr[0] == 'v1'
'v2', // $arr[1] == 'v2'
'v3' // $arr[2] == 'v3'
];
// key accessed array (map like)
$arr = array(
'k1' => 'v1', // $arr['k1'] == 'v1'
'k2' => 'v2', // $arr['k2'] == 'v2'
'k3' => 'v3' // $arr['k3'] == 'v3'
);
// or (since PHP 5.4)
$arr = [
'k1' => 'v1', // $arr['k1'] == 'v1'
'k2' => 'v2', // $arr['k2'] == 'v2'
'k3' => 'v3' // $arr['k3'] == 'v3'
];
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us