split()?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



How would I do this ?

Take this string and return everything between [ ] as an array output doesnt
have to inlude [ ]
$rr="thisscritjajsj[ OUT1 ]ajdamsda;sjo;tkpdk[ OUT2 ]sdfmjs[ OUT3 ]dfjlsd";

$a = some function

echo '<pre>';
print_r($a);

    [0] =>  [ OUT1 ]
    [1] =>  [ OUT2 ]
    [2] =>  [ OUT3 ]

Thanks

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux