brent123456 Posted November 26, 2007 Share Posted November 26, 2007 I am having trouble trying to split a string. $urlname = split("[?-&]",$_SERVER["HTTP_REFERER"]); print_r ($urlname); I am getting error.. Warning: split() [function.split]: REG_ERANGE in Any give me a hand? thanks Link to comment https://forums.phpfreaks.com/topic/78987-solved-trying-to-split-string-at-and/ Share on other sites More sharing options...
Orio Posted November 26, 2007 Share Posted November 26, 2007 You dont need that "-"... $urlname = split("[?&]",$_SERVER["HTTP_REFERER"]); print_r ($urlname); Orio. Link to comment https://forums.phpfreaks.com/topic/78987-solved-trying-to-split-string-at-and/#findComment-399765 Share on other sites More sharing options...
brent123456 Posted November 27, 2007 Author Share Posted November 27, 2007 Worked like a charm. Thanks Orio Link to comment https://forums.phpfreaks.com/topic/78987-solved-trying-to-split-string-at-and/#findComment-399879 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.