marcis Posted November 4, 2009 Report Share Posted November 4, 2009 Un kādi plusi ir izmantot explode, nevis parse_str, šajā gadījumā? Salīdzini savu kodu ar šo: $somevar = "http://www.google.lv/search?hl=lv&client=firefox-a&rls=org.mozilla%3Aen-US%3Aofficial&hs=QHK&q=fraaze+ko+meklee&btnG=Mekl%C4%93t"; $params = array(); parse_str($somevar, $params); echo $params['q']; Un ir manīts, ka googles refferer saites arī mēdz mainīties, tad explode variants nestrādās korekti. Quote Link to comment Share on other sites More sharing options...
FiXeD Posted November 4, 2009 Report Share Posted November 4, 2009 (edited) nja tik tali neaizdomajos, bet ja vinam tas ir uzdots var nezinashanas gadijuma atrunaties ar explode :D cik labi apzinaties, ka lv kads ar ko sajedz no shaa.. :D Edited November 4, 2009 by FiXeD Quote Link to comment Share on other sites More sharing options...
waplet Posted November 4, 2009 Report Share Posted November 4, 2009 te puse manliekas to sajēdz Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.