使用phpQuery获取数组

使用phpQuery获取数组

<?  
include 'phpQuery.php';  
phpQuery::newDocumentFile('http://job.blueidea.com');  
foreach (pq("input[name='jobEmail[]']")  as $li){
$po['jobEmail'][] = pq($li)->attr('value');
}

使用phpQuery获取元素的值

$po['langSkills']['typeId'][] = $obj->find("select[name='langSkills[typeId][]']:eq(1) option:selected")->attr('value');  # 外语要求

你可能感兴趣的:(使用phpQuery获取数组)