aspose file tools*
The moose likes PHP and the fly likes View this value inside this array (or double array)? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Languages » PHP
Bookmark "View this value inside this array (or double array)?" Watch "View this value inside this array (or double array)?" New topic
Author

View this value inside this array (or double array)?

Koldo Urrutia
Ranch Hand

Joined: Dec 16, 2011
Posts: 85
Hey

I have this code........



That print_r gives me this (the first time around, other times its the same but it just gives me different Xs and Ys which is expected):

Array ( [label] => Corte [value] => X: 207 Y: 339 Type: spline#X: 287 Y: 148 Type: spline#X: 453 Y: 170 Type: spline#X: 474 Y: 354 Type: spline#X: 359 Y: 466 Type: spline#X: 270 Y: 436 Type: spline#X: 207 Y: 339 Type: spline# [print_value] => X: 207 Y: 339 Type: spline#X: 287 Y: 148 Type: spline#X: 453 Y: 170 Type: spline#X: 474 Y: 354 Type: spline#X: 359 Y: 466 Type: spline#X: 270 Y: 436 Type: spline#X: 207 Y: 339 Type: spline# [option_id] => 2 [option_type] => area [custom_view] => )


I want to get and retrieve (or print/echo it out) ONLY what is in Corte[value]. How can I retrieve that? I also want to get [option_id] but I imagine if I can get Corte[value] I can problably get [option_id]

How can I do it?

Thanks!
Koldo Urrutia
Ranch Hand

Joined: Dec 16, 2011
Posts: 85
Like I mentioned option_id is what I expected:



That works. But



Doesnt....
Koldo Urrutia
Ranch Hand

Joined: Dec 16, 2011
Posts: 85
Solved it. It was a problem between the chair and the keyboard.
Shalini Prabhakar
Greenhorn

Joined: May 31, 2012
Posts: 8
The easiest way to retrieve is

<?php print_r($_options['value']);?>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: View this value inside this array (or double array)?