Re: general questions
| From: | Jordan S. Jones | Date: | Mon, 02 Jun 2003 18:56:26 +0000 |
| Subject: | Re: general questions | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-149830@lists.php.net to get a copy of this message | ||
Dale,
1. If my memory serves me correctly, when you initialize a variable, it is given the default value of NULL until something is assigned to it.
2. PHP is not a strongly typed language, meaning that your array would act as so:
$arr_test[0] = 1; /// Integer type $arr_test[1] = "My Name"; /// String type $arr_test[2] = true; /// Boolean typeHope this helps, Jordan S. Jones Dale wrote:
I am new to php and I just have some general questions. 1. when you create a new variable such as an integer, is it automatically initialized or is it considered empty similar to asp? 2. If I were to create an array and filled the array with a Boolean value, a string, and an integer what type would the array take on? Thanks, Dale