Jump to content

Please Help.


dj03091986

Recommended Posts

Hi everyone, I'm new to this and a little stuck. 

 

Please could someone help me. 

 

I have the following code:

 

if (!preg_match('^(' . $value . ')(;q=[0-9]\\.[0-9])?$', $this->browser_languages[$i]) && isset($this->catalog_languages[$key]')) {
            $this->language = $this->catalog_languages[$key];
            break 2;
 
When I test the code I get the following error. 
 
preg_match() [<a href='function.preg-match'>function.preg-match</a>]: No ending delimiter '^' found /public_html/includes/classes/language.php 87
 
Please help me
 
Thanks in advance
Link to comment
https://forums.phpfreaks.com/topic/294176-please-help/
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.