Mark Minasi's Tech Forum
Sign up Calendar Latest Topics
 
 
 


Reply
  Author   Comment  
meloao

New Friend (or an Old Friend who Built a New Account)
Registered:
Posts: 93
Reply with quote  #1 
I have a question about searching the an array for specific values.  

The array ($arrayUsers) has the following values:
EMPLOYEE_ID         : 00000 
EMPLOYEE_FNAME  : John
EMPLOYEE_LNAME  : Smith
EMPLOYEE_PHONE   : 123-456-789

EMPLOYEE_ID:         11111
EMPLOYEE_FNAME:   Tom
EMPLOYEE_LNAME:   Jones
EMPLOYEE_PHONE   : 987-654-3210

EMPLOYEE_ID:          22222
EMPLOYEE_FNAME:   Sam
EMPLOYEE_LNAME:   Jackson
EMPLOYEE_PHONE   : 483-000-1110

I created code to prompt the user for EMPLOYEE_ID, EMPLOYEE_FNAME, and EMPLOYEE_LNAME using the following variables $employeeID, $inputFirstName, $inputLastName, $inputPhone.

I would like to be able to search the array to look for the record that has the match for employee id, employee first name, and employee last name and then change the phoneNumber to something.  Any ideas?  







0
Previous Topic | Next Topic
Print
Reply

Quick Navigation:

Easily create a Forum Website with Website Toolbox.