【问题标题】:get <textarea> value using PHP Simple HTML DOM Parser使用 PHP Simple HTML DOM Parser 获取 <textarea> 值
【发布时间】:2010-10-31 07:37:02
【问题描述】:
<textarea rows="1" cols="80" name="textarea{7}1" class="textarea_getcode">http://example.com/upload/logo.png</textarea>

请告诉我如何抓取 http://example.com/upload/logo.png

谢谢..

【问题讨论】:

    标签: php html-parsing


    【解决方案1】:
    $textarea = $html->find('textarea[class=textarea_getcode]'); 
    
    $textarea->innertext;
    

    类似的东西?

    【讨论】:

      猜你喜欢
      • 2012-08-12
      • 2012-04-08
      • 1970-01-01
      • 2016-04-21
      • 1970-01-01
      • 2017-06-08
      • 1970-01-01
      • 1970-01-01
      • 2016-04-09
      相关资源
      最近更新 更多