|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
|
|
#1
|
|||
|
|||
|
parsing | (7c)
I need to parse a file that is delimited by the | character (hex 7c) and I can't get it to work. A little subset of what i am tring to do is:
<?php $text = "number|name|type"; echo $text; // echos right $newtext = split("|", $text); //$newtext = split("x7C", $text); not working either print_r($newtext); ?> |
|
#2
|
|||
|
|||
|
RE: parsing | (7c)
try the explode function
|
|
#3
|
|||
|
|||
|
RE: parsing | (7c)
Thanks,
it worked like this: <?php $text = "number|name|type"; echo $text; // echos right $newtext = explode("|", $text); print_r($newtext); ?> |
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Coding > parsing | (7c) |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|