note 87814 deleted from function.iptcembed by thiago

From: Date: Tue, 23 Dec 2008 16:53:21 +0000
Subject: note 87814 deleted from function.iptcembed by thiago
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-148480@lists.php.net to get a copy of this message
Note Submitter: php at NOSPAM dot samedia dot eu ---- In reply to support at image-host-script dot com: Great script, just what I needed. However, I noticed that multiple entries for a tag are not supported, only the first one will be returned. To make this work I modified the function get($tag) as follows <?php function get($tag) { if(isset($this->meta["2#$tag"])) { if(count($this->meta["2#$tag"]) > 1) return implode(";",$this->meta["2#$tag"]); else return $this->meta["2#$tag"][0]; } else return false; } ?> Now, if you have f.e. multiple keywords they will be returned as a semicolon-separated list.

« previous php.notes (#148480) next »