note 106324 added to function.var-export

From: Date: Thu, 27 Oct 2011 14:10:53 +0000
Subject: note 106324 added to function.var-export
Groups: php.notes 
Request: Send a blank email to php-notes+get-184176@lists.php.net to get a copy of this message
Although var_export() describes an object in terms of code that calls its class's __set_state() method, that code is only useful as such (for code generation purposes, say) if the class actually HAS a __set_state() method. Classes don't have __set_state(), in other words; you have to provide it with one yourself (just like __toString()). ---- Server IP: 202.89.58.1 Probable Submitter: 122.57.199.218 ---- Manual Page -- http://www.php.net/manual/en/function.var-export.php Edit -- https://master.php.net/note/edit/106324 Del: integrated -- https://master.php.net/note/delete/106324/integrated Del: useless -- https://master.php.net/note/delete/106324/useless Del: bad code -- https://master.php.net/note/delete/106324/bad+code Del: spam -- https://master.php.net/note/delete/106324/spam Del: non-english -- https://master.php.net/note/delete/106324/non-english Del: in docs -- https://master.php.net/note/delete/106324/in+docs Del: other reasons-- https://master.php.net/note/delete/106324 Reject -- https://master.php.net/note/reject/106324 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#184176) next »