li3

NewsDocumentationVersionsPresentationsCommunityDevelopment
  • Documentation
  • Framework API (1.2.x)
  • lithium
  • storage
  • cache
  • strategy
  • Serializer
  • write()

Contents

  • ../

lithium\storage\cache\strategy\Serializer::write()

public method

Write strategy method.

Serializes the passed data.

Parameters

  • mixed $data

    The data to be serialized.

Returns

string

Serialized data.

Links

  • PHP Manual: serialize()

Source

	public function write($data) {
		return serialize($data);
	}
GitHub / Twitter / Reddit / Stack Overflow
Testimonial Image

We welcome our li3 overlords!

Pretty much everything is (c) 2009-2023 and beyond, the Union of RAD.