So drucken Sie einen bestimmten Wert im array in PHP?
array(2) {
[0]=>
object(stdClass)#144 (7) {
["id"]=>
string(1) "2"
["name"]=>
string(8) "name1"
["value"]=>
string(22) "Lorem Ipsum Dolar Amet"
["type"]=>
string(8) "textarea"
["group"]=>
string(1) "1"
["published"]=>
string(1) "1"
["ordering"]=>
string(1) "1"
}
[1]=>
object(stdClass)#145 (7) {
["id"]=>
string(1) "4"
["name"]=>
string(6) "Link1"
["value"]=>
string(36) "abcabcab"
["type"]=>
string(4) "link"
["group"]=>
string(1) "1"
["published"]=>
string(1) "1"
["ordering"]=>
string(1) "2"
}
}
Will ich nur drucken "Wert" (abcabcab) der id=4. Wie kann ich das erreichen?
InformationsquelleAutor cateye | 2010-05-03
Du musst angemeldet sein, um einen Kommentar abzugeben.
$entry->value
InformationsquelleAutor ZZ Coder
InformationsquelleAutor Mike Sherov
Es ist schön, nehmen Sie einen anderen Ansatz gelegentlich. 🙂
InformationsquelleAutor Matthew Flaschen
dies funktioniert:
Dank!
InformationsquelleAutor cateye