Deprecated: Hook custom_css_loaded is deprecated since version jetpack-13.5! Use WordPress Custom CSS instead. Jetpack no longer supports Custom CSS. Read the WordPress.org documentation to learn how to apply custom styles to your site: https://wordpress.org/documentation/article/styles-overview/#applying-custom-css in /home/everyuseful/public_html/wp-includes/functions.php on line 6078
How to convert an array from php Laravel to javascript - EveryUseful

How to convert an array from php Laravel to javascript

If you have an array from php (maybe a collection from DB) and you want to use this data in Javascript, a simple solution would be

var jsArray = @json($array);

Leave a Reply

Your email address will not be published. Required fields are marked *