In Progress

php loop set variables

I have a pretty simple problem. I have a string of text like shown in the example.

"FirstName: Gary

LastName: Raid

Weight: 120

Birthday: 1993/04/03

Hours: 12

Street: 4123 E sadwick


City: Phoenix

State: AZ

Race: White

Language: English

Ethnicity: Non-Hispanic Or Non Latino

PatientsHeigth: 6’1”

PatientsWeight: 200

IsPatientPregnant: N/A

SurgicalHistory: Gall bladder

DrugName1: Omaprazole

DrugStrength1: OTC

Frequency1: QD


I need a php script that will basically take the text in front and set it as the variable name to the item after

Example $FirstName = "Gary"

$LastName = "Raid"

$Weight = "120"

etc for all of the items listed :) this needs to be a looping system so the string can have extra items added to it without any issue. Also some variables will not have values as you can see in the example.

Skills: PHP, Software Architecture, MySQL, Javascript, HTML

See more: ancient language english translator, php loop table field type, install joomla language english, php mysql set items, php loop mysql columns, php loop rows columns, translate athens language english, mother language english, php loop script, php language english translate, loop columns php result set, php search mysql language english, php loop result set, php loop mysql result set, translate language english arabic php, a set of values corresponding to a set of variables is defined as a(n), php loop through post variables

About the Employer:
( 44 reviews ) laveen, United States

Project ID: #21320000

Awarded to:


Hello :) Thanks for your job posting. I saw your description carefully. I am a Senior web Developer who have 8+ years of experiences. My skills are Html5,CSS,SCSS, Bootstrap,Javascript,Jquery,MySql,PHP especially MySq More

$20 USD in 1 day
(32 Reviews)

32 freelancers are bidding on average $23 for this job


I like to do this job but we can not create variable from string, but what we can do is add the array with index of string like this. $list = []; $list['FirstName'] = "Gary" $list['LastName'] = "Raid" $list['Weight'] = More

$30 USD in 1 day
(255 Reviews)

Dear, hiring manager! I have read your project description carefully, I have completed previously the project similar to your project. It is easy for me to build a such website. I am expert in PHP, Wordpress and javas More

$20 USD in 1 day
(235 Reviews)

i will write it through the looping in php script.............................................................

$50 USD in 1 day
(439 Reviews)

Hello, Hope you are doing great!! I've read your description that you want this text in string format. As per your requirement I'can fix this issue. Could you please provide me credentials of your project? I am glad More

$30 USD in 1 day
(56 Reviews)

Hi, I can help you in set variable frmo string data. Have the following skillsets: php, mysql, codeigniter, laravel, wordpress, jquery, google map, angular. Please let me know when we can discuss in more details so More

$30 USD in 7 days
(147 Reviews)

Hello. Thank you for your job posting. I read your project and I can do it. Please contact me. Kind regard. Eric brian.

$20 USD in 1 day
(41 Reviews)

Hi there, Greetings from TechPlus! I've reviewed your requirements & ready to create variable via loop from text string. 5+ Years Expertise in : CMS (Wordpress, Magento, Shopify, OpenCart, Joomla, Drupal, Prestashop More

$30 USD in 1 day
(111 Reviews)

Hi I have gone through the requirements. Will do this script using PHP. I'm available to start now. Please share additional details. Regards, Mohan

$20 USD in 1 day
(109 Reviews)

Gretting Sir, Today your job posting (php loop set variables) has caught my attention. i can also help you setup varianle name as per key in loop just in next 11 min MAX -:) in any case you may visit my profile to s More

$10 USD in 1 day
(124 Reviews)

Hi, I'm very glad to bid your project. I've read your job post carefully. This job really attracts me and also your required skills are completely matched with my major skills. I have good knowledge and rich experienc More

$20 USD in 1 day
(23 Reviews)

Hi,client I have been working for 8 years working in freelancer. In these times , I have a lot of experiences in Javascript , HTML5, PHP ,Node.js and Angular.js ,Laravel, CI ,React.js ,ASP.NET, C#, MongoDB, [login to view URL], More

$20 USD in 1 day
(24 Reviews)

Hello, you there? I will create a php script for make variables of listing items. I can start work right now. I have 5+ year experience of Wordpress and PHP. I know you will get lots of low ball bids. Waiting for yo More

$30 USD in 1 day
(51 Reviews)

Hi there ... I will Customize anything that you need in your site ..... I can design and develop any type of website in WordPress or in other platform , i am also giving 100% satisfaction to my all clients , i hope you More

$30 USD in 1 day
(14 Reviews)

Hi, Dear. I can do this in 30 mins, please contact me. I have read your job description very carefully, and I can do it perfectly as well as you want. I am a rich experienced web developer with HTML5, CSS3, JavaScript, More

$20 USD in 7 days
(15 Reviews)

Hello How are you? I've read carefully your job description. I have more than seven years experience in Development. Your satisfaction with the project is my top priority! If you give me a chance to work with you, th More

$20 USD in 7 days
(20 Reviews)

I can complete this task in 30 minutes. Hey there, i am developer from the UK with over 9 years experience in web development. Upon reading your project description this seems like a task which i can start on right now More

$50 USD in 1 day
(8 Reviews)

Dear Client. I've just read your requirements description. As I have good skills and full experiences in php, sql, css, html, react js, angular js,node js and laravel,codeIgniter..., I'm sure I can do your task perfect More

$20 USD in 1 day
(12 Reviews)

.. Dear Sir, I'm a Web Developer who is specialized in PHP. I have read your description with great interest. I have 6+ years of experience in PHP. if you hire me, i could satisfy. I hope you award me. Kind Regards.

$20 USD in 7 days
(16 Reviews)

Hello. I am a professional ⭐“ PHP & Javascript expert” ⭐to have rich experience that make many site with mainly CI,Laravel and reactjs,angular js ,MySQL for 5+years. I have enough-time to develop it and I have top More

$20 USD in 4 days
(5 Reviews)

Hi Sir Thanks for your posting project Please see my profile then you can notice I am a top c++ developer. I am also good at web so I can help you perfectly.

$20 USD in 7 days
(6 Reviews)