Thread: Type casting
View Single Post
Old 05-24-2008, 10:39 PM   #1 (permalink)
Orc
The Prestige
 
Orc's Avatar
 
Join Date: Dec 2007
Posts: 1,044
Thanks: 193
Orc is on a distinguished road
Default 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.
Orc is offline  
Reply With Quote