note 104169 added to function.iptcembed

From: Date: Sun, 29 May 2011 12:00:30 +0000
Subject: note 104169 added to function.iptcembed
Groups: php.notes 
Request: Send a blank email to php-notes+get-180084@lists.php.net to get a copy of this message
While using the class file noted below you'll notice setting an array of keywords with the set() function will not work. Try this instead: <?php function set($tag, $data) { if(is_array($data)){ $c = count($data); for ($i=0; $i <$c; $i++){ $this->meta["2#$tag"][$i] = $data[$i]; } $this->hasmeta=true; } else { $this->meta["2#$tag"]= Array( $data ); $this->hasmeta=true; } } ?> ---- Server IP: 208.69.120.55 Probable Submitter: 66.233.32.113 ---- Manual Page -- http://www.php.net/manual/en/function.iptcembed.php Edit -- https://master.php.net/note/edit/104169 Del: integrated -- https://master.php.net/note/delete/104169/integrated Del: useless -- https://master.php.net/note/delete/104169/useless Del: bad code -- https://master.php.net/note/delete/104169/bad+code Del: spam -- https://master.php.net/note/delete/104169/spam Del: non-english -- https://master.php.net/note/delete/104169/non-english Del: in docs -- https://master.php.net/note/delete/104169/in+docs Del: other reasons-- https://master.php.net/note/delete/104169 Reject -- https://master.php.net/note/reject/104169 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#180084) next »