echo in json format
<?php
...
$json_string = json_encode($data, JSON_PRETTY_PRINT);
Also in PHP:
- Allowed memory size of 536870912 bytes exhausted (tried to allocate 102400 bytes) in Unknown on line 0 laravel
- date functions in php
- Failed at the @ development script. laravel dev
- alert js in php
- array ket exists
- clear all caches in laravel
- check if array has a certain key
- Laravel Excel numbers formatted as text still appearing as number
- Your Composer dependencies require the following PHP extensions to be installed: fileinfo
- add shortcode in short description
- create laravel 6
- date( w ) php
- echo type php
- : Allowed memory size of 41943040 bytes exhausted (tried to allocate 3072 bytes) i
- date time long format php
- check if a string contains specific characters in php
- array unicode php
- Warning: mysqli_error() expects exactly 1 parameter, 0
- 500 error means in laravel laravel
- do i use laravel version or php version when hosting laravel app
- create random unique password with php
- check if string contains specific string php
- laravel::all()->distinct()->get();
- do something after redirect php