Showing 7 of 1,216 result(s)
The signature of the toArray method is: public function toArray();
The following method calls are equivalent:
The jsonSerialize method internally returns a call to toArray . Because of this, toArray , jsonSerialize and getAttributes are all functionally equivalent. The jsonSerialize method exists to satisfy PHP's JsonSerializable interface, which allows...
The signature of the jsonSerialize method is: public function jsonSerialize();
The following method calls are equivalent:
The toJson method will return a JSON encoded version of the data stored within the fluent instance. It internally does this by returning a call to PHP's json_encode function, passing in any $options that were supplied. Like the json_encode...
The signature of the toJson method is:
The following amazing people help support this site and my open source projects ♥️
If you're interesting in supporting my work and want to show up on this list, check out my GitHub Sponsors Profile.