NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Selection of variables $ _SESSION $ _POST $ _GET ...


Joined: 27 Sep 2011
Posts: 10
Reply with quote
When you double click on $ _SESSION ['test'], all $ _SESSION variables are selected. We must make the diference between $ _SESSION ['test0'] and $ _SESSION ['test1']
or $_POST['test0'] and $_POST['test1']
sorry for my English !!















[img][/img]
View user's profileFind all posts by gladiiiSend private message


Joined: 27 Sep 2011
Posts: 10
Reply with quote
should display tables like this in the code navigator:
+ $ _SESSION
test
test1
+ $ _POST
test
test1

like here:


And you can select $ _SESSION ['test'] and $ _SESSION ['test1'] as I said above
View user's profileFind all posts by gladiiiSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8334
Reply with quote
I'm not sure how this would work in a consistent manner.
What if while typing $_SESSIO| you need to see all the instances of $_SESSION?

If you need to see all occurences of a particular string, just use Search->Find menu and click Highlight all.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Guru master

Joined: 24 Jul 2009
Posts: 737
Reply with quote
Whilst in the context of a global such as $_SESSION or $_SERVER it might be desired to highlight specific elements, for local variables I would expect most people to want all occurrences to be highlighted, so the current highlighting method would be correct.

On the other hand, if you selected the whole of $_SESSION['D_2SCS'] then maybe it would be reasonable to highlight occurrences that use just that element.

I'm not sure if this is relevant to gladiii's Globals tables example, but bear in mind that it is possible to add an array variable complete with its element to the Watch list, so rather than looking through a list of elements in Globals you can see just the elements you are interested in with Watch. For code with lots of globals that might also make debugging faster.
View user's profileFind all posts by plugnplaySend private message
Selection of variables $ _SESSION $ _POST $ _GET ...
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic