split string ?

From: Makabanokanada (wladimir.stubbe_at_tiscali-dot-be.no-spam.invalid)
Date: 04/28/04


Date: Wed, 28 Apr 2004 07:25:14 -0500

Hi,
I 'm new to php and I try to split a string into an array of
character , here is my code:

titleArray= split(".", title);
verticalTitle="";

for(i=0; i<count(titleArray);i++){
  verticalTitle.="<br>" .
titleArray[i];
}

And the result show me only the tag <br> ... :unsure: ?
Thanks and regards,
M

----------------------------------------
The post originated from PHP Freaks:
----------------------------------------
http://www.phpfreaks.com
http://www.phpfreaks.com/forums



Relevant Pages

  • Re: arrays -- can they be words, not bytes?
    ... of pixels, each 16-bits deep, is run-length-encoded into a smaller C array ... ASCII string so that I can send it via HTTP POST command to a PHP script. ... I have an array of unsigned shorts here". ...
    (comp.lang.php)
  • Re: threadsort
    ... >script to php. ... >Both scripts now produce the same output. ... >first string in each array of string. ... the array in the following code is sorted how I think you want ...
    (comp.lang.php)
  • Re: $request problem
    ... $array['key'] is an array with the string 'key' as index. ... from OUTSIDE a doublequote'd string, ... The PHP manual says on this topic: ... That would explain why you get no warnings! ...
    (comp.lang.php)
  • Re: arrays -- can they be words, not bytes?
    ... am I accessing string elements? ... string there, or an array? ... ASCII string so that I can send it via HTTP POST command to a PHP script. ... documentation on type array is likely to mislead you. ...
    (comp.lang.php)
  • Re: alternative php syntax
    ... I am building an array of strings in the form of "number=", ... I literally mean to assign string values such as: ... know php is loose about declaring variables. ...
    (alt.php)