Hi,
Could someone give me a hint in the right direction regarding my array-search problem?
HP-UX
Apache
PHP 5.2
Informix
PHP is calling a shellscript:
exec("/opt/hpws/apache/htdocs/wwwtools/bin/testSTD.sh", $results);
print_r($results);
This will result in:
Array ( [0] => LP01|421120|LAHE|FI|16053|MICROSYSTEMS|JARVE| | |PERE|300|7067|RAMI| |15|17|DOM/COB | | | |1|0.5|0.0|20080416|1609|421120|ACCEPTED|Transferred to 3rd Party|20080416|1609|1616| [1] => LP01|419802|LAHE|FI|9631|CONTROLS|TKATU 1|100 PERE| |PERE|300|0566|SIRPA |*MUKAAN KATUT|1546|1645|ECX 1,2KG| | | |1|1.2|0.0|20080416|1559|419802|ACCEPTED|Transferred to 3rd Party|20080416|1559|1606|)
I need to find a way to search for a specific value and then print out some of the information.
Eg. Search for 421120 and print out MICROSYSTEMS;ACCEPTED;DOM/COB
Thanks in advance
Fredrik