문제
PHP에서는 고객 이름 태그의 텍스트 값을 얻고 싶습니다. 나는이 코드를 작성하지만 이것은 작동하지 않습니다. 이걸 도와 주시겠습니까? 고맙습니다
$customerName = $dom->get_elements_by_tagname("item");
$customernameValue = customerName[0]-> first_child()->node_value ();
올바른 솔루션이 없습니다
다른 팁
나는 당신이 사용하고있는 도서관에 익숙하지 않지만, 당신은 단순히 $를 놓친 것 같습니다. customerName
두 번째 줄에서.
당신은 누락되었습니다 $
서명, 시도해보십시오 :
$customerName = $dom -> get_elements_by_tagname ("item");
$customernameValue = $customerName[0] -> first_child() -> node_value ();
제휴하지 않습니다 StackOverflow