Hey,
I am not sure if this is possible however,
For example if I had a variable set to the number 14
Is it possible for me to change that just to the number 1, so get rid of the second digit?
Thanks
Hey,
I am not sure if this is possible however,
For example if I had a variable set to the number 14
Is it possible for me to change that just to the number 1, so get rid of the second digit?
Thanks
Don't think that it is possible, I think you can update numbers etc in sessions, if not just use MySQL?
I don't quite get at what you want? You could always just substring it to keep the first number or something, although I'm pretty sure there is another function that will do that.
PHP Code:
$varName = 14;
$varName = substr( $varName, 0, 1 );
Magic, thats excactly what i was after
Thank you very much
I can't give you Rep atm says i need to spread, i shall rep you when it lets me. Thanks
Last edited by Pixzo; 06-10-2008 at 02:55 PM.
Want to hide these adverts? Register an account for free!