我如何从php arrray获取值 [英] How can i get the values from the php arrray

查看:43
本文介绍了我如何从php arrray获取值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用诸如ResumeParsingStartDate,ResumeParsingExpiryDate,MaxLimitOfParsedResume,NumberOfParsedResume之类的字段

I wanted to take the fields such as ResumeParsingStartDate, ResumeParsingExpiryDate, MaxLimitOfParsedResume, NumberOfParsedResume

我如何在php中使用这些值

How can i take those valuse in php

这是评估链接

这是我拥有的数组

这是更新的代码:

注意:由于stackoverflow的编辑器仅允许30,000个字符,因此该字符具有35,000个字符,而且我还是无法将其减少

Note : As stackoverflow's editor allows only 30,000 char the character has 35,000 char, and i can't able to decrease it anyway

推荐答案

您可以像这样获得单个记录:

You can get the single records like this :

    $url = 'http://recruitplushrxmlapidemo.onlineresumeparser.com/hrxml/149Anne%20Marie%20Powell.xml';

    $sxml = simplexml_load_file($url);

    echo 'ResumeParsingStartDate --> '.$sxml->ResumeAdditionalItems->ResumeAdditionalItem[1]->ResumeParsingStartDate;        
    echo "<br />";
    echo 'ResumeParsingExpiryDate --> '.$sxml->ResumeAdditionalItems->ResumeAdditionalItem[1]->ResumeParsingExpiryDate;        
    echo "<br />";
    echo 'NumberOfParsedResume --> '.$sxml->ResumeAdditionalItems->ResumeAdditionalItem[1]->NumberOfParsedResume;        
    echo "<br />";
    echo 'MaxLimitOfParsedResume --> '.$sxml->ResumeAdditionalItems->ResumeAdditionalItem[1]->MaxLimitOfParsedResume;        
    echo "<br />";

对重复元素使用循环

这篇关于我如何从php arrray获取值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆