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 type
Hope 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