Quantcast
Channel: PHP Freaks: PHP Help
Viewing all articles
Browse latest Browse all 13200

Reading File Variable Help

$
0
0

Hi,

 

I am trying to read some hex values from a style-sheet, however am having a little bit of a problem reading the values from a file into a string due to them being different with no unique identifier.

 

Is there an easy way to read the file and put get the value "#e51400" for a variable called $red and "#0076a3" for a variable called $blue?

 

I looked into str_replace but couldn't see a simple way to do this.

 

Thanks,

 

MoFish

@red: #e51400;
@blue: #0076a3;

Viewing all articles
Browse latest Browse all 13200

Trending Articles