li3

NewsDocumentationVersionsPresentationsCommunityDevelopment
  • Documentation
  • Framework API (2.0.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

Not sure what those other
guys were talking about but –
hey can you guys be quiet?
I have the microphone. It's my
turn to talk. What? No, you can
grab a snack after I am done…

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