In PHP, why is the function to convert a JSON string to a PHP object json_encode
and in the Go world Marshal
?
I've been reading the definitions and differences between marshaling and encoding, and I don't get why Golang would call it different to PHP?
Different languages call it different things, but they all do the same thing.
Go: Marshal
JavaScript: Stringify
Python: Dumps
Php: Encode