I saw this in a php script about reading a csv file:
array($mydata);
What does it make? An array from $mydata?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes, it creates an array where
$mydatais the first element. You can even put many elements in there at once:However, if that was all that happened on that line, I’d say nothing happens at all.
array()behaves like a function that returns a new array, if it wasn’t assigned to anything it was simply discarded and nothing happened. Example: