troubleshooting Question

how to get data from a file

Avatar of Johnny
JohnnyFlag for United States of America asked on
5 Comments2 Solutions287 ViewsLast Modified:
id like to make a function to get data from a file

something like:

function Retrieve_File_Data($filename,$Search){
//what to place here?

id like it too look for whats passed to it to look for the = sign and return whats in "" or ''
see im looking at a config file and id like to post the values for some of the config vars/
$default_ccs_style = './styles/dragon1.css';

search for $default_ccs_style
returns ./styles/dragon1.css

how would one do this?
thank you in advance for any code and help you may provide

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 2 Answers and 5 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros