DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PHP
php json_encode without square brackets
$withoutbrackets = trim($yourJson, '[]'); or $object = json_encode($array, JSON_FORCE_OBJECT);
PREVIOUS
NEXT
Tagged:
#php
#square
#brackets
ADD COMMENT
Topic
COMMENT
Name
2+2 =
Submit