public function DecoderInterface::decode

Decodes a string into PHP data.

Parameters

scalar $data Data to decode:

string $format Format name:

array $context options that decoders have access to.:

The format parameter specifies which format the data is in; valid values depend on the specific implementation. Authors implementing this interface are encouraged to document which formats they support in a non-inherited phpdoc comment.

Return value

mixed

6 methods override DecoderInterface::decode()

File

drupal/core/vendor/symfony/serializer/Symfony/Component/Serializer/Encoder/DecoderInterface.php, line 35

Class

DecoderInterface
Defines the interface of decoders

Namespace

Symfony\Component\Serializer\Encoder

Code

public function decode($data, $format, array $context = array());