php , simple_html_dom.php, get selected option

后端 未结 2 847
悲&欢浪女
悲&欢浪女 2021-01-26 10:52

I have a html block like this :

$localurl = \'

                        
    
提交评论

  • 2021-01-26 11:24

    My guess is that you're trying to access $shows when it is defined outside of the function. If this is the problem, you either need to put global $shows; at the top of the func, or, better still, modify the signature to pass it in. Something like:

    getValue_selected($value, $localurl, &$shows)
    {/* your function here */ }
    
    getValue_selected($val1, $val2, $shows);
    
    0 讨论(0)
  • 提交回复
    热议问题