Returning string by reference
How can I make a function set an argument passed to it to string?
Code:
Unfortunately that implementation gives me an error "Error: Must be assigned to an array on line 218" So I think the main question is... how to force type to String / Array on argument passed to function. |
Re: Returning string by reference
PHP Code:
|
Re: Returning string by reference
Oh my goodness it was obvious...
But still I have a problem: Code:
Error: Variable cannot be both a reference and an array (variable "sOutput") on line 185 |
Re: Returning string by reference
Sounds like you are trying to use &theVar[].
PHP Code:
|
| All times are GMT -4. The time now is 13:47. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.