Jump to content

how to read only one section of array


jasonc

Recommended Posts

I have created a new array...

 

$newarray= array(
'name'=>		array('formtype'=> 'ContactUs', 'screenloc'=> 'left', 'fieldid'=>'name', 'fieldtext'=> 'Your name*', 'DBfield'=> 'name'), 
'email'=>		array('formtype'=> 'ContactUs', 'screenloc'=> 'left', 'fieldid'=>'email', 'fieldtext'=> 'Your e-mail address*', 'DBfield'=> 'email'),
'checkEmailB'=>	array('formtype'=> 'ContactUs', 'screenloc'=> 'left', 'fieldid'=>'checkEmailB', 'fieldtext'=> 'Re-type your email address*', 'DBfield'=> 'checkEmailB'), 
'phone'=>		array('formtype'=> 'ContactUs', 'screenloc'=> 'right', 'fieldid'=>'phone', 'fieldtext'=> 'Your phone number*', 'DBfield'=> 'phone'),
'message'=>		array('formtype'=> 'ContactUs', 'screenloc'=> 'right', 'fieldid'=>'message', 'fieldtext'=> 'Your message*', 'DBfield'=> 'message')
);

 

but do not know how to read the different sections of it so i can ready and construct only the 'contactus' parts thats are in the 'formtype' part of the array into the form.

 

 

Link to comment
https://forums.phpfreaks.com/topic/208832-how-to-read-only-one-section-of-array/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.