Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
December 23, 2021 08:49 am GMT

Advance Laravel 8 Interview Questions and Answers 2022

Q. 1: What is Serialization in Laravel?

It's similar to turning an object into JSON, but with the advantage that PHP will remember the native data type of each serialized item (string, array, integer, float, boolean).

PHP and Javascript can only communicate via strings. You can pass the string "foo" very easily to Javascript. You can pass the number 1 very easily to Javascript. You can pass the boolean values true and false easily to Javascript. But how do you pass this array to Javascript?

The answer is serialization. In case of PHP/Javascript, JSON is actually the better serialization format:

**echo json_encode($array)

Read Full Blog Here....


Original Link: https://dev.to/expoashish/advance-laravel-8-interview-questions-and-answers-2022-4p66

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To