Bifter Posted May 17, 2009 Share Posted May 17, 2009 Hi All, Thanks for looking. I have a script that returns a XML RPC request in an array. The output of the array that is dumped is(I have only posted part of this as it is massive.): object(SimpleXMLElement)#1 (3) { ["@attributes"]=> array(1) { ["id"]=> string(32) "8c4566926694d7227d9d73fd8c2acc5b" } ["block"]=> array(3) { [0]=> object(SimpleXMLElement)#2 (3) { ["@attributes"]=> array(1) { ["name"]=> string(12) "availability" } ["a"]=> array(2) { [0]=> string(1) "5" [1]=> string(7) "LU2 0JJ" } ["block"]=> array(3) { [0]=> object(SimpleXMLElement)#6 (2) { ["@attributes"]=> array(1) { ["name"]=> string(21) "classic-qualification" } ["a"]=> array(4) { [0]=> string(1) "Z" [1]=> string(1) "G" [2]=> string(7) "2097152" [3]=> string(1) "G" } } [1]=> object(SimpleXMLElement)#7 (2) { ["@attributes"]=> array(1) { ["name"]=> string( "exchange" } ["a"]=> array(4) { [0]=> string(4) "SMLT" [1]=> string(5) "LUTON" [2]=> string(1) "E" [3]=> string(1) "Y" } } [2]=> object(SimpleXMLElement)#8 (2) { ["@attributes"]=> array(1) { ["name"]=> string(17) "max-qualification" } ["a"]=> array(2) { [0]=> string(1) "G" [1]=> string(7) "4096000" } } } } <?php echo "<pre>"; var_dump($xmlObj); echo "</pre>"; ?> I need a way of turning the important parts of the array, such as LU2 0JJ or LUTON into a variable so I can make it usable. Thanks, B. Quote Link to comment https://forums.phpfreaks.com/topic/158508-echoing-part-of-an-array/ Share on other sites More sharing options...
gregor171 Posted May 18, 2009 Share Posted May 18, 2009 Variable Variables works similar way: http://si2.php.net/manual/en/language.variables.variable.php For your case: ${$xmlObj["block"]["a"][1]}="my value"; You would get your variable here, but you can't create a variable with spaces. I'd suggest to put them in new array. Quote Link to comment https://forums.phpfreaks.com/topic/158508-echoing-part-of-an-array/#findComment-836133 Share on other sites More sharing options...
Daniel0 Posted May 18, 2009 Share Posted May 18, 2009 http://php.net/manual/en/simplexml.examples-basic.php Quote Link to comment https://forums.phpfreaks.com/topic/158508-echoing-part-of-an-array/#findComment-836247 Share on other sites More sharing options...
Bifter Posted May 18, 2009 Author Share Posted May 18, 2009 If I use simpleXML to process the file like this: <?php $xml = new SimpleXMLElement($Response); echo $Response; ?> What is returned is: <?xml version="1.0" ?> - <Response id="8c4566926694d7227d9d73fd8c2acc5b"> - <block name="availability"> <a name="quick-result" format="counting">5</a> <a name="postcode" format="postcode">LU2 0JJ</a> - <block name="classic-qualification"> <a name="result-code" format="text">Z</a> <a name="fixed-rate" format="text">G</a> <a name="likely-max-speed" format="counting">2097152</a> <a name="rate-adaptive" format="text">G</a> </block> - <block name="exchange"> <a name="code" format="text">SMLT</a> <a name="name" format="text">LUTON</a> <a name="state" format="text">E</a> <a name="llu" format="yesno">Y</a> </block> So if I was to use: <?php echo $xml->block->a; ?> Then the output would be "5" - which is correct. <?php echo $xml->block->a[1]; ?> also works fine and returns "LU2 0JJ", my problem being how do I echo a result from the next block of results such as "Z" from "result-code" - logic would dictate it should be something along the line of: <?php echo $xml->block[1]->a; ?> or <?php echo $xml->block[1]->a[0]; ?> but neither work. Please help as just cannot figure this out. Thanks, B. Quote Link to comment https://forums.phpfreaks.com/topic/158508-echoing-part-of-an-array/#findComment-836298 Share on other sites More sharing options...
Daniel0 Posted May 18, 2009 Share Posted May 18, 2009 Could you please post the raw XML? The XML you have there isn't well-formed. Quote Link to comment https://forums.phpfreaks.com/topic/158508-echoing-part-of-an-array/#findComment-836304 Share on other sites More sharing options...
Bifter Posted May 18, 2009 Author Share Posted May 18, 2009 Could you please post the raw XML? The XML you have there isn't well-formed. Basicly I request the XML back from an ADSL provider using: <?php function httpsPost($Url, $strRequest) { // Initialisation $ch=curl_init(); // Set parameters curl_setopt($ch, CURLOPT_URL, $Url); // Return a variable instead of posting it directly curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); // Active the POST method curl_setopt($ch, CURLOPT_POST, 1) ; // Request curl_setopt($ch, CURLOPT_POSTFIELDS, $strRequest); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); // execute the connexion $result = curl_exec($ch); // Close it curl_close($ch); return $result; } $url = 'xml.xps.xxxxx.com'; $strRequest = utf8_encode('<?xml version="1.0"?> <Request module="XPS" call="availability" id="8c4566926694d7227d9d73fd8c2acc5b" version="2.0.1"> <block name="auth"> <a name="username" format="text">xxxx</a> <a name="password" format="password">xxxx</a> <a name="client-id" format="counting">xxxx</a> </block> <a name="postcode" format="postcode">LU2 0JJ</a> <a name="detailed" format="yesno">Y</a> <a name="order-type" format="text">provide</a> </Request>'); $Response = httpsPost($url, $strRequest); echo $Response; ?> and this is what I get back(sample of, as alot of data is returned): <?xml version="1.0" ?> - <Response id="8c4566926694d7227d9d73fd8c2acc5b"> - <block name="availability"> <a name="quick-result" format="counting">5</a> <a name="postcode" format="postcode">LU2 0JJ</a> - <block name="classic-qualification"> <a name="result-code" format="text">Z</a> <a name="fixed-rate" format="text">G</a> <a name="likely-max-speed" format="counting">2097152</a> <a name="rate-adaptive" format="text">G</a> </block> - <block name="exchange"> <a name="code" format="text">SMLT</a> <a name="name" format="text">LUTON</a> <a name="state" format="text">E</a> <a name="llu" format="yesno">Y</a> </block> - <block name="max-qualification"> <a name="rate-adaptive" format="text">G</a> <a name="likely-max-speed" format="counting">4096000</a> </block> </block> - <block name="products"> - <block> <a name="product-id" format="counting">1235</a> <a name="product-name" format="text">Home 512k Classic</a> <a name="technology-type" format="text">adsl</a> <a name="capped" format="yesno">Y</a> <a name="service-speed" format="counting">524288</a> <a name="contention" format="counting">50</a> <a name="care-availability" format="yesno">Y</a> <a name="care-level" format="text">standard</a> - <block name="realms"> - <block> <a name="realm" format="text">-flipsolutions@surfdsluk</a> </block> </block> </block> - <block> <a name="product-id" format="counting">1236</a> <a name="product-name" format="text">Home 1mb Classic</a> <a name="technology-type" format="text">adsl</a> <a name="capped" format="yesno">Y</a> <a name="service-speed" format="counting">1048576</a> <a name="contention" format="counting">50</a> <a name="care-availability" format="yesno">Y</a> <a name="care-level" format="text">standard</a> - <block name="realms"> - <block> <a name="realm" format="text">-flipsolutions@surfdsluk</a> </block> </block> </block> Cheers, B. Quote Link to comment https://forums.phpfreaks.com/topic/158508-echoing-part-of-an-array/#findComment-836313 Share on other sites More sharing options...
Daniel0 Posted May 18, 2009 Share Posted May 18, 2009 Well, you need to give a better sample then. These dashes do not belong there, and what you are posting is not well-formed XML, so it could never be parsed by SimpleXML in the first place. When you are viewing an XML file in e.g. Firefox then you need to view the source. It provides things such as code folding for your convenience. We can't use that for processing data though. We need the raw XML. Quote Link to comment https://forums.phpfreaks.com/topic/158508-echoing-part-of-an-array/#findComment-836316 Share on other sites More sharing options...
Bifter Posted May 18, 2009 Author Share Posted May 18, 2009 My bad - sorry: <?xml version="1.0"?> <Response id="8c4566926694d7227d9d73fd8c2acc5b"> <block name="availability"> <a name="quick-result" format="counting">5</a> <a name="postcode" format="postcode">LU2 0JJ</a> <block name="classic-qualification"> <a name="result-code" format="text">Z</a> <a name="fixed-rate" format="text">G</a> <a name="likely-max-speed" format="counting">2097152</a> <a name="rate-adaptive" format="text">G</a> </block> <block name="exchange"> <a name="code" format="text">SMLT</a> <a name="name" format="text">LUTON</a> <a name="state" format="text">E</a> <a name="llu" format="yesno">Y</a> </block> <block name="max-qualification"> <a name="rate-adaptive" format="text">G</a> <a name="likely-max-speed" format="counting">4096000</a> </block> </block> <block name="products"> <block> <a name="product-id" format="counting">1235</a> <a name="product-name" format="text">Home 512k Classic</a> <a name="technology-type" format="text">adsl</a> <a name="capped" format="yesno">Y</a> <a name="service-speed" format="counting">524288</a> <a name="contention" format="counting">50</a> <a name="care-availability" format="yesno">Y</a> <a name="care-level" format="text">standard</a> <block name="realms"> <block> <a name="realm" format="text">-flipsolutions@surfdsluk</a> </block> </block> </block> <block> <a name="product-id" format="counting">1236</a> <a name="product-name" format="text">Home 1mb Classic</a> <a name="technology-type" format="text">adsl</a> <a name="capped" format="yesno">Y</a> <a name="service-speed" format="counting">1048576</a> <a name="contention" format="counting">50</a> <a name="care-availability" format="yesno">Y</a> <a name="care-level" format="text">standard</a> <block name="realms"> <block> <a name="realm" format="text">-flipsolutions@surfdsluk</a> </block> </block> </block> <block> <a name="product-id" format="counting">1237</a> <a name="product-name" format="text">Home 2mb Classic</a> <a name="technology-type" format="text">adsl</a> <a name="capped" format="yesno">Y</a> <a name="service-speed" format="counting">2097152</a> <a name="contention" format="counting">50</a> <a name="care-availability" format="yesno">Y</a> <a name="care-level" format="text">standard</a> <block name="realms"> <block> <a name="realm" format="text">-flipsolutions@surfdsluk</a> </block> </block> </block> <block> <a name="product-id" format="counting">1238</a> <a name="product-name" format="text">Business 512k Classic</a> <a name="technology-type" format="text">adsl</a> <a name="capped" format="yesno">Y</a> <a name="service-speed" format="counting">524288</a> <a name="contention" format="counting">20</a> <a name="care-availability" format="yesno">Y</a> <a name="care-level" format="text">standard</a> <block name="realms"> <block> <a name="realm" format="text">-flipsolutions@surfdsluk</a> </block> </block> </block> <block> <a name="product-id" format="counting">1239</a> <a name="product-name" format="text">Business 1mb Classic</a> <a name="technology-type" format="text">adsl</a> <a name="capped" format="yesno">Y</a> <a name="service-speed" format="counting">1048576</a> <a name="contention" format="counting">20</a> <a name="care-availability" format="yesno">Y</a> <a name="care-level" format="text">standard</a> <block name="realms"> <block> <a name="realm" format="text">-flipsolutions@surfdsluk</a> </block> </block> </block> <block> <a name="product-id" format="counting">1240</a> <a name="product-name" format="text">Business 2mb Classic</a> <a name="technology-type" format="text">adsl</a> <a name="capped" format="yesno">Y</a> <a name="service-speed" format="counting">2097152</a> <a name="contention" format="counting">20</a> <a name="care-availability" format="yesno">Y</a> <a name="care-level" format="text">standard</a> <block name="realms"> <block> <a name="realm" format="text">-flipsolutions@surfdsluk</a> </block> </block> </block> <block> <a name="product-id" format="counting">1317</a> <a name="product-name" format="text">ADSL MAX Classic</a> <a name="technology-type" format="text">adsl</a> <a name="capped" format="yesno">Y</a> <a name="care-availability" format="yesno">Y</a> <a name="care-level" format="text">standard</a> <a name="interleaving-availability" format="yesno">Y</a> <a name="max-interleaving" format="text">yes,no,auto</a> <a name="interleaving-default" format="text">auto</a> <block name="realms"> <block> <a name="realm" format="text">-flipsolutions@surfdsluk</a> </block> </block> <a name="service-speed" format="counting">4096000</a> </block> <block> <a name="product-id" format="counting">1318</a> <a name="product-name" format="text">ADSL MAX Premium Classic</a> <a name="technology-type" format="text">adsl</a> <a name="capped" format="yesno">Y</a> <a name="interleaving-availability" format="yesno">Y</a> <a name="max-interleaving" format="text">yes,no,auto</a> <a name="interleaving-default" format="text">auto</a> <a name="care-availability" format="yesno">Y</a> <a name="care-level" format="text">standard</a> <block name="realms"> <block> <a name="realm" format="text">-flipsolutions@surfdsluk</a> </block> </block> <a name="service-speed" format="counting">4096000</a> </block> <block> <a name="product-id" format="counting">1383</a> <a name="product-name" format="text">ADSL MAX Light</a> <a name="technology-type" format="text">adsl</a> <a name="capped" format="yesno">Y</a> <a name="care-availability" format="yesno">Y</a> <a name="care-level" format="text">standard</a> <a name="interleaving-availability" format="yesno">Y</a> <a name="max-interleaving" format="text">yes,no,auto</a> <a name="interleaving-default" format="text">auto</a> <block name="realms"> <block> <a name="realm" format="text">-flipsolutions@surfdsluk</a> </block> </block> <a name="service-speed" format="counting">4096000</a> </block> <block> <a name="product-id" format="counting">1384</a> <a name="product-name" format="text">ADSL MAX Premium Light</a> <a name="technology-type" format="text">adsl</a> <a name="capped" format="yesno">Y</a> <a name="interleaving-availability" format="yesno">Y</a> <a name="max-interleaving" format="text">yes,no,auto</a> <a name="interleaving-default" format="text">auto</a> <a name="care-availability" format="yesno">Y</a> <a name="care-level" format="text">standard</a> <block name="realms"> <block> <a name="realm" format="text">-flipsolutions@surfdsluk</a> </block> </block> <a name="service-speed" format="counting">4096000</a> </block> <block> <a name="product-id" format="counting">1519</a> <a name="product-name" format="text">LLU Max Classic</a> <a name="technology-type" format="text">adsl</a> <a name="capped" format="yesno">Y</a> <a name="care-availability" format="yesno">Y</a> <a name="care-level" format="text">standard</a> <block name="realms"> <block> <a name="realm" format="text">-flipsolutions@accessdsluk</a> </block> </block> <a name="service-speed" format="counting">4096000</a> </block> <block> <a name="product-id" format="counting">1520</a> <a name="product-name" format="text">LLU Premium Classic</a> <a name="technology-type" format="text">adsl</a> <a name="capped" format="yesno">Y</a> <a name="care-availability" format="yesno">Y</a> <a name="care-level" format="text">standard</a> <block name="realms"> <block> <a name="realm" format="text">-flipsolutions@accessdsluk</a> </block> </block> <a name="service-speed" format="counting">4096000</a> </block> <block> <a name="product-id" format="counting">1521</a> <a name="product-name" format="text">LLU Max Light</a> <a name="technology-type" format="text">adsl</a> <a name="capped" format="yesno">Y</a> <a name="care-availability" format="yesno">Y</a> <a name="care-level" format="text">standard</a> <block name="realms"> <block> <a name="realm" format="text">-flipsolutions@accessdsluk</a> </block> </block> <a name="service-speed" format="counting">4096000</a> </block> <block> <a name="product-id" format="counting">1522</a> <a name="product-name" format="text">LLU Premium Light</a> <a name="technology-type" format="text">adsl</a> <a name="capped" format="yesno">Y</a> <a name="care-availability" format="yesno">Y</a> <a name="care-level" format="text">standard</a> <block name="realms"> <block> <a name="realm" format="text">-flipsolutions@accessdsluk</a> </block> </block> <a name="service-speed" format="counting">4096000</a> </block> <block> <a name="product-id" format="counting">1523</a> <a name="product-name" format="text">VoiceStream 200 (ADSL)</a> <a name="technology-type" format="text">adsl</a> <a name="capped" format="yesno">N</a> <a name="service-speed" format="counting">524288</a> <a name="contention" format="counting">20</a> <a name="interleaving-availability" format="yesno">Y</a> <a name="max-interleaving" format="text">yes,no,auto</a> <a name="interleaving-default" format="text">no</a> <a name="care-availability" format="yesno">N</a> <a name="care-level" format="text">enhanced</a> <block name="realms"> <block> <a name="realm" format="text">-flipsolutions@surfdsluk</a> </block> </block> </block> <block> <a name="product-id" format="counting">1524</a> <a name="product-name" format="text">VoiceStream 350 (ADSL)</a> <a name="technology-type" format="text">adsl</a> <a name="capped" format="yesno">N</a> <a name="interleaving-availability" format="yesno">Y</a> <a name="max-interleaving" format="text">yes,no,auto</a> <a name="interleaving-default" format="text">no</a> <a name="care-availability" format="yesno">N</a> <a name="care-level" format="text">enhanced</a> <block name="realms"> <block> <a name="realm" format="text">-flipsolutions@surfdsluk</a> </block> </block> <a name="service-speed" format="counting">4096000</a> </block> <block> <a name="product-id" format="counting">1525</a> <a name="product-name" format="text">VoiceStream 700 (ADSL)</a> <a name="technology-type" format="text">adsl</a> <a name="capped" format="yesno">N</a> <a name="care-availability" format="yesno">N</a> <a name="care-level" format="text">enhanced</a> <a name="interleaving-availability" format="yesno">Y</a> <a name="max-interleaving" format="text">yes,no,auto</a> <a name="interleaving-default" format="text">no</a> <block name="realms"> <block> <a name="realm" format="text">-flipsolutions@surfdsluk</a> </block> </block> <a name="service-speed" format="counting">4096000</a> </block> <block> <a name="product-id" format="counting">1533</a> <a name="product-name" format="text">LLU ADSL 2+ Home Classic</a> <a name="technology-type" format="text">adsl</a> <a name="capped" format="yesno">Y</a> <a name="care-availability" format="yesno">Y</a> <a name="care-level" format="text">standard</a> <block name="realms"> <block> <a name="realm" format="text">-flipsolutions@accessdsluk</a> </block> </block> <a name="service-speed" format="counting">4096000</a> </block> <block> <a name="product-id" format="counting">1534</a> <a name="product-name" format="text">LLU ADSL 2+ Business Classic</a> <a name="technology-type" format="text">adsl</a> <a name="capped" format="yesno">Y</a> <a name="care-availability" format="yesno">Y</a> <a name="care-level" format="text">standard</a> <block name="realms"> <block> <a name="realm" format="text">-flipsolutions@accessdsluk</a> </block> </block> <a name="service-speed" format="counting">4096000</a> </block> <block> <a name="product-id" format="counting">1572</a> <a name="product-name" format="text">ADSL MAX Premium Sumo 100</a> <a name="technology-type" format="text">adsl</a> <a name="capped" format="yesno">Y</a> <a name="interleaving-availability" format="yesno">Y</a> <a name="max-interleaving" format="text">yes,no,auto</a> <a name="interleaving-default" format="text">auto</a> <a name="care-availability" format="yesno">Y</a> <a name="care-level" format="text">standard</a> <block name="realms"> <block> <a name="realm" format="text">-flipsolutions@surfdsluk</a> </block> </block> <a name="service-speed" format="counting">4096000</a> </block> <block> <a name="product-id" format="counting">1573</a> <a name="product-name" format="text">ADSL MAX Premium Sumo 200</a> <a name="technology-type" format="text">adsl</a> <a name="capped" format="yesno">Y</a> <a name="interleaving-availability" format="yesno">Y</a> <a name="max-interleaving" format="text">yes,no,auto</a> <a name="interleaving-default" format="text">auto</a> <a name="care-availability" format="yesno">Y</a> <a name="care-level" format="text">standard</a> <block name="realms"> <block> <a name="realm" format="text">-flipsolutions@surfdsluk</a> </block> </block> <a name="service-speed" format="counting">4096000</a> </block> <block> <a name="product-id" format="counting">1574</a> <a name="product-name" format="text">ADSL MAX Sumo 100</a> <a name="technology-type" format="text">adsl</a> <a name="capped" format="yesno">Y</a> <a name="care-availability" format="yesno">Y</a> <a name="care-level" format="text">standard</a> <a name="interleaving-availability" format="yesno">Y</a> <a name="max-interleaving" format="text">yes,no,auto</a> <a name="interleaving-default" format="text">auto</a> <block name="realms"> <block> <a name="realm" format="text">-flipsolutions@surfdsluk</a> </block> </block> <a name="service-speed" format="counting">4096000</a> </block> <block> <a name="product-id" format="counting">1575</a> <a name="product-name" format="text">ADSL MAX Sumo 200</a> <a name="technology-type" format="text">adsl</a> <a name="capped" format="yesno">Y</a> <a name="care-availability" format="yesno">Y</a> <a name="care-level" format="text">standard</a> <a name="interleaving-availability" format="yesno">Y</a> <a name="max-interleaving" format="text">yes,no,auto</a> <a name="interleaving-default" format="text">auto</a> <block name="realms"> <block> <a name="realm" format="text">-flipsolutions@surfdsluk</a> </block> </block> <a name="service-speed" format="counting">4096000</a> </block> <block> <a name="product-id" format="counting">1576</a> <a name="product-name" format="text">LLU Premium Sumo 150</a> <a name="technology-type" format="text">adsl</a> <a name="capped" format="yesno">Y</a> <a name="care-availability" format="yesno">Y</a> <a name="care-level" format="text">standard</a> <block name="realms"> <block> <a name="realm" format="text">-flipsolutions@accessdsluk</a> </block> </block> <a name="service-speed" format="counting">4096000</a> </block> <block> <a name="product-id" format="counting">1577</a> <a name="product-name" format="text">LLU Premium Sumo 300</a> <a name="technology-type" format="text">adsl</a> <a name="capped" format="yesno">Y</a> <a name="care-availability" format="yesno">Y</a> <a name="care-level" format="text">standard</a> <block name="realms"> <block> <a name="realm" format="text">-flipsolutions@accessdsluk</a> </block> </block> <a name="service-speed" format="counting">4096000</a> </block> <block> <a name="product-id" format="counting">1578</a> <a name="product-name" format="text">LLU Max Sumo 150</a> <a name="technology-type" format="text">adsl</a> <a name="capped" format="yesno">Y</a> <a name="care-availability" format="yesno">Y</a> <a name="care-level" format="text">standard</a> <block name="realms"> <block> <a name="realm" format="text">-flipsolutions@accessdsluk</a> </block> </block> <a name="service-speed" format="counting">4096000</a> </block> <block> <a name="product-id" format="counting">1579</a> <a name="product-name" format="text">LLU Max Sumo 300</a> <a name="technology-type" format="text">adsl</a> <a name="capped" format="yesno">Y</a> <a name="care-availability" format="yesno">Y</a> <a name="care-level" format="text">standard</a> <block name="realms"> <block> <a name="realm" format="text">-flipsolutions@accessdsluk</a> </block> </block> <a name="service-speed" format="counting">4096000</a> </block> <block> <a name="product-id" format="counting">1580</a> <a name="product-name" format="text">LLU ADSL 2+ Business Sumo 150</a> <a name="technology-type" format="text">adsl</a> <a name="capped" format="yesno">Y</a> <a name="care-availability" format="yesno">Y</a> <a name="care-level" format="text">standard</a> <block name="realms"> <block> <a name="realm" format="text">-flipsolutions@accessdsluk</a> </block> </block> <a name="service-speed" format="counting">4096000</a> </block> <block> <a name="product-id" format="counting">1581</a> <a name="product-name" format="text">LLU ADSL 2+ Business Sumo 300</a> <a name="technology-type" format="text">adsl</a> <a name="capped" format="yesno">Y</a> <a name="care-availability" format="yesno">Y</a> <a name="care-level" format="text">standard</a> <block name="realms"> <block> <a name="realm" format="text">-flipsolutions@accessdsluk</a> </block> </block> <a name="service-speed" format="counting">4096000</a> </block> <block> <a name="product-id" format="counting">1582</a> <a name="product-name" format="text">LLU ADSL 2+ Home Sumo 150</a> <a name="technology-type" format="text">adsl</a> <a name="capped" format="yesno">Y</a> <a name="care-availability" format="yesno">Y</a> <a name="care-level" format="text">standard</a> <block name="realms"> <block> <a name="realm" format="text">-flipsolutions@accessdsluk</a> </block> </block> <a name="service-speed" format="counting">4096000</a> </block> <block> <a name="product-id" format="counting">1583</a> <a name="product-name" format="text">LLU ADSL 2+ Home Sumo 300</a> <a name="technology-type" format="text">adsl</a> <a name="capped" format="yesno">Y</a> <a name="care-availability" format="yesno">Y</a> <a name="care-level" format="text">standard</a> <block name="realms"> <block> <a name="realm" format="text">-flipsolutions@accessdsluk</a> </block> </block> <a name="service-speed" format="counting">4096000</a> </block> <block> <a name="product-id" format="counting">1595</a> <a name="product-name" format="text">LLU ADSL2+ Home Special</a> <a name="technology-type" format="text">adsl</a> <a name="capped" format="yesno">N</a> <a name="care-availability" format="yesno">N</a> <a name="care-level" format="text">standard</a> <block name="realms"> <block> <a name="realm" format="text">-flipsolutions@accessdsl</a> </block> </block> <a name="service-speed" format="counting">4096000</a> </block> <block> <a name="product-id" format="counting">1596</a> <a name="product-name" format="text">LLU ADSL2+ Business Special</a> <a name="technology-type" format="text">adsl</a> <a name="capped" format="yesno">N</a> <a name="care-availability" format="yesno">N</a> <a name="care-level" format="text">standard</a> <block name="realms"> <block> <a name="realm" format="text">-flipsolutions@accessdsl</a> </block> </block> <a name="service-speed" format="counting">4096000</a> </block> </block> <block name="leadtimes"> <block> <a name="leadtime" format="counting">5</a> <a name="first-date-int" format="counting">1243292400</a> <a name="first-date-text" format="date">2009-05-26</a> <a name="product-id" format="counting">1235</a> </block> <block> <a name="leadtime" format="counting">5</a> <a name="first-date-int" format="counting">1243292400</a> <a name="first-date-text" format="date">2009-05-26</a> <a name="product-id" format="counting">1236</a> </block> <block> <a name="leadtime" format="counting">5</a> <a name="first-date-int" format="counting">1243292400</a> <a name="first-date-text" format="date">2009-05-26</a> <a name="product-id" format="counting">1237</a> </block> <block> <a name="leadtime" format="counting">5</a> <a name="first-date-int" format="counting">1243292400</a> <a name="first-date-text" format="date">2009-05-26</a> <a name="product-id" format="counting">1238</a> </block> <block> <a name="leadtime" format="counting">5</a> <a name="first-date-int" format="counting">1243292400</a> <a name="first-date-text" format="date">2009-05-26</a> <a name="product-id" format="counting">1239</a> </block> <block> <a name="leadtime" format="counting">5</a> <a name="first-date-int" format="counting">1243292400</a> <a name="first-date-text" format="date">2009-05-26</a> <a name="product-id" format="counting">1240</a> </block> <block> <a name="leadtime" format="counting">5</a> <a name="first-date-int" format="counting">1243292400</a> <a name="first-date-text" format="date">2009-05-26</a> <a name="product-id" format="counting">1317</a> </block> <block> <a name="leadtime" format="counting">5</a> <a name="first-date-int" format="counting">1243292400</a> <a name="first-date-text" format="date">2009-05-26</a> <a name="product-id" format="counting">1318</a> </block> <block> <a name="leadtime" format="counting">5</a> <a name="first-date-int" format="counting">1243292400</a> <a name="first-date-text" format="date">2009-05-26</a> <a name="product-id" format="counting">1383</a> </block> <block> <a name="leadtime" format="counting">5</a> <a name="first-date-int" format="counting">1243292400</a> <a name="first-date-text" format="date">2009-05-26</a> <a name="product-id" format="counting">1384</a> </block> <block> <a name="leadtime" format="counting">6</a> <a name="first-date-int" format="counting">1243378800</a> <a name="first-date-text" format="date">2009-05-27</a> <a name="product-id" format="counting">1519</a> </block> <block> <a name="leadtime" format="counting">6</a> <a name="first-date-int" format="counting">1243378800</a> <a name="first-date-text" format="date">2009-05-27</a> <a name="product-id" format="counting">1520</a> </block> <block> <a name="leadtime" format="counting">6</a> <a name="first-date-int" format="counting">1243378800</a> <a name="first-date-text" format="date">2009-05-27</a> <a name="product-id" format="counting">1521</a> </block> <block> <a name="leadtime" format="counting">6</a> <a name="first-date-int" format="counting">1243378800</a> <a name="first-date-text" format="date">2009-05-27</a> <a name="product-id" format="counting">1522</a> </block> <block> <a name="leadtime" format="counting">5</a> <a name="first-date-int" format="counting">1243292400</a> <a name="first-date-text" format="date">2009-05-26</a> <a name="product-id" format="counting">1523</a> </block> <block> <a name="leadtime" format="counting">5</a> <a name="first-date-int" format="counting">1243292400</a> <a name="first-date-text" format="date">2009-05-26</a> <a name="product-id" format="counting">1524</a> </block> <block> <a name="leadtime" format="counting">5</a> <a name="first-date-int" format="counting">1243292400</a> <a name="first-date-text" format="date">2009-05-26</a> <a name="product-id" format="counting">1525</a> </block> <block> <a name="leadtime" format="counting">6</a> <a name="first-date-int" format="counting">1243378800</a> <a name="first-date-text" format="date">2009-05-27</a> <a name="product-id" format="counting">1533</a> </block> <block> <a name="leadtime" format="counting">6</a> <a name="first-date-int" format="counting">1243378800</a> <a name="first-date-text" format="date">2009-05-27</a> <a name="product-id" format="counting">1534</a> </block> <block> <a name="leadtime" format="counting">5</a> <a name="first-date-int" format="counting">1243292400</a> <a name="first-date-text" format="date">2009-05-26</a> <a name="product-id" format="counting">1572</a> </block> <block> <a name="leadtime" format="counting">5</a> <a name="first-date-int" format="counting">1243292400</a> <a name="first-date-text" format="date">2009-05-26</a> <a name="product-id" format="counting">1573</a> </block> <block> <a name="leadtime" format="counting">5</a> <a name="first-date-int" format="counting">1243292400</a> <a name="first-date-text" format="date">2009-05-26</a> <a name="product-id" format="counting">1574</a> </block> <block> <a name="leadtime" format="counting">5</a> <a name="first-date-int" format="counting">1243292400</a> <a name="first-date-text" format="date">2009-05-26</a> <a name="product-id" format="counting">1575</a> </block> <block> <a name="leadtime" format="counting">6</a> <a name="first-date-int" format="counting">1243378800</a> <a name="first-date-text" format="date">2009-05-27</a> <a name="product-id" format="counting">1576</a> </block> <block> <a name="leadtime" format="counting">6</a> <a name="first-date-int" format="counting">1243378800</a> <a name="first-date-text" format="date">2009-05-27</a> <a name="product-id" format="counting">1577</a> </block> <block> <a name="leadtime" format="counting">6</a> <a name="first-date-int" format="counting">1243378800</a> <a name="first-date-text" format="date">2009-05-27</a> <a name="product-id" format="counting">1578</a> </block> <block> <a name="leadtime" format="counting">6</a> <a name="first-date-int" format="counting">1243378800</a> <a name="first-date-text" format="date">2009-05-27</a> <a name="product-id" format="counting">1579</a> </block> <block> <a name="leadtime" format="counting">6</a> <a name="first-date-int" format="counting">1243378800</a> <a name="first-date-text" format="date">2009-05-27</a> <a name="product-id" format="counting">1580</a> </block> Quote Link to comment https://forums.phpfreaks.com/topic/158508-echoing-part-of-an-array/#findComment-836318 Share on other sites More sharing options...
Bifter Posted May 18, 2009 Author Share Posted May 18, 2009 is there any reason why the block name and a name appear? Quote Link to comment https://forums.phpfreaks.com/topic/158508-echoing-part-of-an-array/#findComment-836520 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.