Re: From IDL to JS or PHP or C++ [message #64888] |
Thu, 29 January 2009 08:31 |
Conor
Messages: 138 Registered: February 2007
|
Senior Member |
|
|
On Jan 28, 11:52 am, asry...@googlemail.com wrote:
> Hello,
>
> Could anyone translate this bit to JavaScript, PHP or C++?
>
> index = Where(array EQ 2.5, count)
> xy = array_indices(array, index[0])
> subarray = array[xy[0]-1:xy[0]+1, xy[1]-1:xy[1]+1]
>
> Thank you
I do lots of php and idl programming, so I suppose I could translate
it into IDL. However there isn't really a direct php-idl correlation
because php doesn't really have two-dimensional arrays like IDL does.
You can make a two dimensional array in php by but this would be more
related to an array of pointers pointing to arrays in IDL, than it
would be to a two dimensional IDL array. I'm not sure if that's
really what you want...
|
|
|