note 104850 added to class.mongoid

From: Date: Mon, 11 Jul 2011 16:15:34 +0000
Subject: note 104850 added to class.mongoid
Groups: php.notes 
Request: Send a blank email to php-notes+get-181420@lists.php.net to get a copy of this message
If you need to get the actual ID string, and you try the usual way, PHP will whine because it starts with a dollar sign and it thinks it's a variable. Instead, use this notation: <?php $mongoid->{'$id'} //Get the $id property of a MongoId object ?> ---- Server IP: 72.55.140.6 Probable Submitter: 66.130.88.53 ---- Manual Page -- http://www.php.net/manual/en/class.mongoid.php Edit -- https://master.php.net/note/edit/104850 Del: integrated -- https://master.php.net/note/delete/104850/integrated Del: useless -- https://master.php.net/note/delete/104850/useless Del: bad code -- https://master.php.net/note/delete/104850/bad+code Del: spam -- https://master.php.net/note/delete/104850/spam Del: non-english -- https://master.php.net/note/delete/104850/non-english Del: in docs -- https://master.php.net/note/delete/104850/in+docs Del: other reasons-- https://master.php.net/note/delete/104850 Reject -- https://master.php.net/note/reject/104850 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#181420) next »