05-24-2008, 10:39 PM
|
#1 (permalink)
|
|
The Prestige
Join Date: Dec 2007
Posts: 1,044
Thanks: 193
|
Type casting
When you make a variable look like a different data type, how is this done in php?
I mean if I try this:
PHP Code:
<?php
$string = "Hello World"; $string = (int) $string;
// This to me sounds like the concept of type casting in php // Now this only gives me 0 cause theres EDIT: NO -_- integers // How do I change it back to a string, an integer to a string // Maybe I don't understand the concept
?>
__________________
VillageIdiot can have my babbies ;d
Last edited by Orc : 05-25-2008 at 06:21 PM.
|
|
|
|