Jump to content

Recommended Posts

I surching for something i tried it a few times but it can't get anything work.

I give an example to make it easy:

You have a textarea, in this textarea you copie for example:
Jos Bamerman 5 10 5 8
Frank hoskoe 15 6 20 6


the lines will be copied in the texarea
Now i want these 6 words(and numbers) in 6 different variables like
Firstname lastname age housenumber ...
The words are always sepperated with a space.
I was thinking about something that puts everything in a varaible until he sees a comma
So the variable will be like
$firstname = Jos
$lastname = Bamerman ...

Greetz Jirte


Link to comment
https://forums.phpfreaks.com/topic/11792-5words-out-1-line-in-5-variable-example/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.