Answers for "laravel convert array to json object"

PHP
10

php convert array to json object

$myArr = array("apple", "banana", "mango", "jackfruit");

$toJSON = json_encode($myArr);

echo $toJSON;
Posted by: Guest on June-18-2020
1

convert json string to json object in laravel

$manage = json_decode($request->stdin, true);
 print_r($manage);
Posted by: Guest on October-27-2020
1

convert php array to javascript json laravel

<script>
	var js_json_obt = @json($php_array ?? '');
</scritp>
Posted by: Guest on December-07-2020

Code answers related to "laravel convert array to json object"

Browse Popular Code Answers by Language