PHP variable conversions
Posted: Mon Jan 17, 2011 5:35 pm
Hello,
I'm new PHP programmer that just started to learn. I'm picking up quite well but I would like to ask few questions that bother me. It would be rude of me if I would post few dedicated topics so I will post some off-code questions here in hope someone could answer me.
1:
I understand how variable conversion works.
For example, I want to convert integer variable into string one:
Basically now my "10" is converted to ASCII code, right?
Well I wanted to test that by using following code:
I was hoping I would get some ASCII code as now $int is converted into string. But all I get is number 10 - the one I assigned $int with in the first place. Am I missing something?
2. I went to PHP website earlier today. And I see this: "PHP 5.3.5 and PHP 5.2.17 are available". I don't understand - first I tought 5.3.5 is like beta for testing but I didn't find out am I right. So, why is there two versions of PHP available for download?
3. This is a bit simple - I'm learning PHP and I got quite a grasp of HTML. I want to learn how to make effective dynamic websites. What language should I go with next after PHP? CSS? Maybe go a bit on Javascript?
Thanks.
I'm new PHP programmer that just started to learn. I'm picking up quite well but I would like to ask few questions that bother me. It would be rude of me if I would post few dedicated topics so I will post some off-code questions here in hope someone could answer me.
1:
I understand how variable conversion works.
For example, I want to convert integer variable into string one:
Code: Select all
<?php
$int = 10;
$str = (string) $int;
?>Well I wanted to test that by using following code:
Code: Select all
<?php
$int = 10;
$str = (string) $int;
[b]echo $int;[/b]
?>2. I went to PHP website earlier today. And I see this: "PHP 5.3.5 and PHP 5.2.17 are available". I don't understand - first I tought 5.3.5 is like beta for testing but I didn't find out am I right. So, why is there two versions of PHP available for download?
3. This is a bit simple - I'm learning PHP and I got quite a grasp of HTML. I want to learn how to make effective dynamic websites. What language should I go with next after PHP? CSS? Maybe go a bit on Javascript?
Thanks.