我試圖使用get_meta_tags()
函數獲取網站關鍵字。 但它返回截斷的結果。我如何才能獲得完整的結果?PHP get_meta_tags()函數截斷結果
它給了我這樣的 mycode的--->
print_r(get_meta_tags('https://www.youtube.com/watch?v=__dTmkodoYU'));
結果--->
[keywords] => play doh, hello kitty, Hello Kitty (Fictional Character), kinder, Kinder Surprise (Consumer Product), kinder surprise eggs, peppa pig, peppa pig kinder surpr...
一定數量的字符後,它把點點點。我想充滿。
if if var_dump($ tags); die(); 我仍然得到截斷的字符串。我認爲這個功能是有字符限制的。但我無法找到它的論據。 – ahmedavid
你從哪裏得到這個想法? 'print_r()'沒有這樣的事情;它會很高興地打印頁面和數據頁面,如果你問它。 – duskwuff
@duskwuff,看起來你是對的。我記得有一個轉儲函數用於惹惱我,因爲它截斷了字符串。可能來自Xdebug或類似的東西。 –