What is the difference between for & foreach, exec &
system?
Answer Posted / raj
Ofcourse the syntax is completely different but the only
difference is
foreach simply gives an easy way to iterate over arrays.
foreach works only on arrays,
and will issue an error when you try to use it on a variable
with a different data type or an uninitialized variable
where as for loop works on the count length or what ever
please look in to php.net site for reference.
Thanks,
Raj
Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
Explain goto name?
What is warn function in perl?
What syntax is used for grep() function?
How can memory be managed in Perl?
How can information be put into hashes?
Define perl scripting?
what are the three groups involved in information sharing?
How to create a package?
Write a program that shows the distinction between child and parent process?
What are the logical operators used for small scale operations? Explain them briefly.
How to copy a file in perl?
Explain socket programming in perl?
“Perl regular expressions match the longest string possible”. What is the name of this match?
Write a program to show the process of spawning a child process
What is perl scripting?