Ich sollte wahrscheinlich einen Thread mit meinem Namen öffnen...
Aber einiges an meinem Wissen ist einfach nicht aufzuarbeiten:
Wie kann ich ein stdClassObjekt nach einem String durchsuchen?
In PHP.net Manuals kann ich leider nichts dazu finden?
Beim Google auch nicht.
So ich es richtig verstanden habe, ist dies ein 3Dimensionales Array. Mit der Function array_search funktioniert dies leider nicht - folgende Fehlermeldung:
Ich möchte gerne aus folgendem Text nur gerne prüfen,
ob das Wort Attachment oder attachment zu finden ist. Am liebsten mit if(ist in $TEXT zu finden) {ja} {nein}:
Solltet Ihr keine Idee haben, werd' ich wohl alles einzeln Abfragen müssen...
Danke im vorraus
Aber einiges an meinem Wissen ist einfach nicht aufzuarbeiten:
Wie kann ich ein stdClassObjekt nach einem String durchsuchen?
In PHP.net Manuals kann ich leider nichts dazu finden?
Beim Google auch nicht.
So ich es richtig verstanden habe, ist dies ein 3Dimensionales Array. Mit der Function array_search funktioniert dies leider nicht - folgende Fehlermeldung:
Warning: array_search() [function.array-search]: Wrong datatype
for second argument in D:\xampp\htdocs\tazroot\aufbau_mail
\de_mail.imap_1.php on line 118
for second argument in D:\xampp\htdocs\tazroot\aufbau_mail
\de_mail.imap_1.php on line 118
ob das Wort Attachment oder attachment zu finden ist. Am liebsten mit if(ist in $TEXT zu finden) {ja} {nein}:
stdClass Object
(
[type] => 1
[encoding] => 0
[ifsubtype] => 1
[subtype] => MIXED
[ifdescription] => 0
[ifid] => 0
[ifdisposition] => 0
[ifdparameters] => 0
[ifparameters] => 1
[parameters] => Array
(
[0] => stdClass Object
(
[attribute] => boundary
[value] => 0-452015107-1216306090=:10386
)
)
[parts] => Array
(
[0] => stdClass Object
(
[type] => 1
[encoding] => 0
[ifsubtype] => 1
[subtype] => ALTERNATIVE
[ifdescription] => 0
[ifid] => 0
[ifdisposition] => 0
[ifdparameters] => 0
[ifparameters] => 1
[parameters] => Array
(
[0] => stdClass Object
(
[attribute] => boundary
[value] => 0-980918426-1216306090=:10386
)
)
[parts] => Array
(
[0] => stdClass Object
(
[type] => 0
[encoding] => 4
[ifsubtype] => 1
[subtype] => PLAIN
[ifdescription] => 0
[ifid] => 0
[lines] => 4
[bytes] => 323
[ifdisposition] => 0
[ifdparameters] => 0
[ifparameters] => 1
[parameters] => Array
(
[0] => stdClass Object
(
[attribute] => charset
[value] => utf-8
)
)
)
[1] => stdClass Object
(
[type] => 0
[encoding] => 4
[ifsubtype] => 1
[subtype] => HTML
[ifdescription] => 0
[ifid] => 0
[lines] => 8
[bytes] => 699
[ifdisposition] => 0
[ifdparameters] => 0
[ifparameters] => 1
[parameters] => Array
(
[0] => stdClass Object
(
[attribute] => charset
[value] => utf-8
)
)
)
)
)
[1] => stdClass Object
(
[type] => 5
[encoding] => 3
[ifsubtype] => 1
[subtype] => GIF
[ifdescription] => 0
[ifid] => 0
[bytes] => 1158
[ifdisposition] => 1
[disposition] => attachment
[ifdparameters] => 1
[dparameters] => Array
(
[0] => stdClass Object
(
[attribute] => filename
[value] => working.gif
)
)
[ifparameters] => 1
[parameters] => Array
(
[0] => stdClass Object
(
[attribute] => name
[value] => working.gif
)
)
)
[2] => stdClass Object
(
[type] => 0
[encoding] => 3
[ifsubtype] => 1
[subtype] => PLAIN
[ifdescription] => 0
[ifid] => 0
[lines] => 32
[bytes] => 1976
[ifdisposition] => 1
[disposition] => attachment
[ifdparameters] => 1
[dparameters] => Array
(
[0] => stdClass Object
(
[attribute] => filename
[value] => rcf.txt
)
)
[ifparameters] => 1
[parameters] => Array
(
[0] => stdClass Object
(
[attribute] => name
[value] => rcf.txt
)
)
)
)
)
(
[type] => 1
[encoding] => 0
[ifsubtype] => 1
[subtype] => MIXED
[ifdescription] => 0
[ifid] => 0
[ifdisposition] => 0
[ifdparameters] => 0
[ifparameters] => 1
[parameters] => Array
(
[0] => stdClass Object
(
[attribute] => boundary
[value] => 0-452015107-1216306090=:10386
)
)
[parts] => Array
(
[0] => stdClass Object
(
[type] => 1
[encoding] => 0
[ifsubtype] => 1
[subtype] => ALTERNATIVE
[ifdescription] => 0
[ifid] => 0
[ifdisposition] => 0
[ifdparameters] => 0
[ifparameters] => 1
[parameters] => Array
(
[0] => stdClass Object
(
[attribute] => boundary
[value] => 0-980918426-1216306090=:10386
)
)
[parts] => Array
(
[0] => stdClass Object
(
[type] => 0
[encoding] => 4
[ifsubtype] => 1
[subtype] => PLAIN
[ifdescription] => 0
[ifid] => 0
[lines] => 4
[bytes] => 323
[ifdisposition] => 0
[ifdparameters] => 0
[ifparameters] => 1
[parameters] => Array
(
[0] => stdClass Object
(
[attribute] => charset
[value] => utf-8
)
)
)
[1] => stdClass Object
(
[type] => 0
[encoding] => 4
[ifsubtype] => 1
[subtype] => HTML
[ifdescription] => 0
[ifid] => 0
[lines] => 8
[bytes] => 699
[ifdisposition] => 0
[ifdparameters] => 0
[ifparameters] => 1
[parameters] => Array
(
[0] => stdClass Object
(
[attribute] => charset
[value] => utf-8
)
)
)
)
)
[1] => stdClass Object
(
[type] => 5
[encoding] => 3
[ifsubtype] => 1
[subtype] => GIF
[ifdescription] => 0
[ifid] => 0
[bytes] => 1158
[ifdisposition] => 1
[disposition] => attachment
[ifdparameters] => 1
[dparameters] => Array
(
[0] => stdClass Object
(
[attribute] => filename
[value] => working.gif
)
)
[ifparameters] => 1
[parameters] => Array
(
[0] => stdClass Object
(
[attribute] => name
[value] => working.gif
)
)
)
[2] => stdClass Object
(
[type] => 0
[encoding] => 3
[ifsubtype] => 1
[subtype] => PLAIN
[ifdescription] => 0
[ifid] => 0
[lines] => 32
[bytes] => 1976
[ifdisposition] => 1
[disposition] => attachment
[ifdparameters] => 1
[dparameters] => Array
(
[0] => stdClass Object
(
[attribute] => filename
[value] => rcf.txt
)
)
[ifparameters] => 1
[parameters] => Array
(
[0] => stdClass Object
(
[attribute] => name
[value] => rcf.txt
)
)
)
)
)
Danke im vorraus
Kommentar