include type forcing into intellisence

Project:VS.Php for Visual Studio .Net
Component:Editor
Category:feature request
Priority:normal
Assigned:webmaster
Status:active
Description

i was wondering if it could be possible to insert the type forcing into the intellisence.

for instance if you would like one variable to become an integer, you would do

(int)$variable.

for a string:

(string)$variable.

I think it would be nice to have these in there, because right now they are not inside the intellisence.

just my two cents.

Updates

#1 submitted by webmaster on Wed, 2006-10-25 20:30
Assigned to:» webmaster

Your idea looks intriguing but I'm not sure I fully understand it. Could you please expand on it?

#2 submitted by ebinfo on Tue, 2006-10-31 09:47

ok, you can use variable forcing to force a variable to become a specific type

ie,

to become an integer, you would use
(int)$variable_name;

to become a string,
(string)$variable_name;

this can be used in many things, like mathematical operations to ensure it deals with digits and so forth.

PHP.net refers it as type juggling, you can see more on the subject here: http://ca.php.net/manual/en/language.types.type-juggling.php

#3 submitted by ebinfo on Sun, 2007-03-18 12:11

any ideas if it can be done or not?

#4 submitted by webmaster on Wed, 2007-03-21 17:58

Yep, I hear you. This will be done.