split string


Posted on 16th Feb 2014 07:03 pm by admin

Hi all

i have some names (imploded by comma):
Code: toronto,paris,madrid
Now, i would obtain this result:
Code: 'toronto','paris','madrid'
How can i do? thanks

No comments posted yet

Your Answer:

Login to answer
115 Like 43 Dislike
Previous forums Next forums
Other forums

use an array from 1 class in a second class
I have a class that adds data to an array

Then I have a second class and I need to check if t

Paypal
Hi all,

I have an advanced basic knowledge of php

I want to try something new for a s

Count
Getting the same count everytime

Code:
$visitquery = mysql_query("SELECT COUNT(*) FR

how do i make new line after *
First check this page here. and you see my report. Im pulling form a mysql db. I want to beable to m

filesize() returns 0
I have a socket program that runs in an infinite loop, listening for connections, in this socket I h

empty() error
Why does

Code: empty($USER_ID = $_SESSION["USER_ID"])
create this error...

rookie looking for help coding a CSS form with PHP
I'm trying to figure out how to add PHP code to my xhtml form so that it is a working form embedded

getting a website's source code as a variable? How?
Hey guys, is there any way for me to get the source code of a website as a variable for me to work w

Extracting Long text from message class with parameters
Hi,

I would like to extract the long text from a message class. However, the long text ha

RTF fomatting to email content
Im trying to sen an email with content is picked up from a rtf-file (file_get_contents('*.rtf'). Mai

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash