Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PHP code - what does this part of code mean?

Tags:

arrays

php

what does the assignment in this loop do? I don't get the array notation in it :S

foreach($fieldvalues as $fieldvalue){
    $insertvalues[] = $fieldvalue;
 }
like image 563
anonymous Avatar asked May 18 '10 08:05

anonymous


People also ask

What does PHP code stand for?

What is PHP? PHP is an acronym for "PHP: Hypertext Preprocessor" PHP is a widely-used, open source scripting language. PHP scripts are executed on the server. PHP is free to download and use.

What is <? PHP tag?

The <= tag is called short open tag in PHP. To use the short tags, one must have to enable it from settings in the PHP. ini file. First of all ensure that short tags are not disabled, To check it, go into php.

What are the basic PHP programming codes structures?

<% php-code-here %>

What are the various tags used in PHP?

php and ?>. These are called PHP's opening and closing tags. Statements witihn these two are interpreted by the parser. PHP script within these tags can be embedded in HTML document, so that embedded code is executed on server, leaving rest of the document to be processed by client browser's HTML parser.


1 Answers

Add $fieldvalue to the end of the $insertvalues array.

like image 104
Finbarr Avatar answered Sep 23 '22 14:09

Finbarr