Re: str_split()

From: Date: Thu, 12 Aug 2004 18:27:32 +0000
Subject: Re: str_split()
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-193622@lists.php.net to get a copy of this message
Do you know of a simular function that will split a string in the same way. I have phone numbers stored in a database in the format ##########. I need to display the number on the page in the format ###-###-####. str_split() worked perfectly for this. Is there another function? Thanks, Aaron "John Nichel" <john@kegworks.com> wrote in message news:411BB3CB.6080706@kegworks.com... > Aaron Todd wrote: > > I thought someone might ask me that. I honestly dont know. I have been > > looking for a comand that I can run to find out, but I havent found one. I > > have SSH access to the server so if you know of a way to get the version > > please let me know. > > Well, it looks like str_split() was introduced in PHP5, and I think it's > safe to say that most production servers out there are still running > php4. Make a php file in the document root of your web site with this > in it.... > > <?php > > phpinfo(); > > ?> > > And access it with a browser... > > http://www.mysite.com/phpinfo.php (or whatever you name the > file) > > and you can see the version of php, as well as all the configuration > options. Also, if you have the cli installed, you can type this in via > a shell.... > > php -v > > and that will give you version info. > > -- > John C. Nichel > ÜberGeek > KegWorks.com > 716.856.9675 > john@kegworks.com

« previous php.general (#193622) next »