Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php generate html attributes from array

http_build_query(['a' => 'A s', 'b' => 'B', 'non-associative-item'], 'item_', ' ')
// "a=A+s b=B item_0=non-associative-item"
 
PREVIOUS NEXT
Tagged: #php #generate #html #attributes #array
ADD COMMENT
Topic
Name
9+6 =