note 103148 added to function.iptcembed
| From: | soporteateticdotcomdotmx at osu1 dot php dot net | Date: | Tue, 29 Mar 2011 02:50:05 +0000 |
| Subject: | note 103148 added to function.iptcembed | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-178287@lists.php.net to get a copy of this message | ||
I just found an error while trying to write several keywords (an array) with the binary function...
please consider using the following:
function binary() {
$iptc_new = '';
foreach (array_keys($this->meta) as $s) {
$tag = str_replace("2#", "", $s);
if(count($this->meta[$s])>1){
foreach ($this->meta[$s] as $row){
$iptc_new .= $this->iptc_maketag(2, $tag, $row);
}
}else {
$iptc_new .= $this->iptc_maketag(2, $tag, $this->meta[$s][0]);
}
}
return $iptc_new;
}
----
Server IP: 69.147.83.197
Probable Submitter: 189.225.207.63
----
Manual Page -- http://www.php.net/manual/en/function.iptcembed.php
Edit -- https://master.php.net/note/edit/103148
Del: integrated -- https://master.php.net/note/delete/103148/integrated
Del: useless -- https://master.php.net/note/delete/103148/useless
Del: bad code -- https://master.php.net/note/delete/103148/bad+code
Del: spam -- https://master.php.net/note/delete/103148/spam
Del: non-english -- https://master.php.net/note/delete/103148/non-english
Del: in docs -- https://master.php.net/note/delete/103148/in+docs
Del: other reasons-- https://master.php.net/note/delete/103148
Reject -- https://master.php.net/note/reject/103148
Search -- https://master.php.net/manage/user-notes.php