Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Using json_encode() function to convert an Array to a string

<?php
$cars = array(
  array(
    'BMW' => 'Germany'
  ),
  array(
    'Ferrari' => 'Italy'
  ),
  array(
    'Honda' => 'Japan'
  )
);
echo json_encode($cars);
 
PREVIOUS NEXT
Tagged: #Using #function #convert #Array #string
ADD COMMENT
Topic
Name
3+7 =