Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php variable outside foreach

$pages = get_pages();
$pagee = array();
foreach ($pages as $page) {
  $pagee[] = $page->post_title;
}
echo implode(",",$pagee);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #variable #foreach
ADD COMMENT
Topic
Name
1+4 =