DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PHP
php add to associative array
// for php 5.4+
$data
+=
[
$key
=>
$value
]
;
// for php 5.4-
$data
+=
array
(
$key
=>
$value
)
;
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#php
#add
#associative
#array
ADD COMMENT
Topic
COMMENT
Name
1+4 =
Submit