Answers for "laravel array to json"

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 php array to javascript json laravel

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

laravel 8 array to json

<script>
	var js_json_object = @json($php_array ?? '');
</scritp>
Posted by: Guest on October-05-2021

Code answers related to "laravel array to json"

Browse Popular Code Answers by Language