🔒 Closed array in php share ko lng

Status
Not open for further replies.

PHC-jollibee

Forum Veteran
simple array example
<?php
$data = array( 1, 2, 3, 4, 5);

foreach( $data as $value ) {
echo "Yournumber".$value;
}

$numbers[0] = "one";
$numbers[1] = "two";
$numbers[2] = "three";
$numbers[3] = "four";
$numbers[4] = "five";

foreach( $numbers as $value ) {
echo "Value is $value <br />";
}
?>
 
Tama ba? Walng space yournumber mo sa echo e😂😅

Yournumber1Yournumber2Yournumber3Yournumber4Yournumber5
Value is one
Value is two
Value is three
Value is four
Value is five
 
Status
Not open for further replies.

About this Thread

  • 7
    Replies
  • 341
    Views
  • 3
    Participants
Last reply from:
zeinab01

Online now

Members online
968
Guests online
1,248
Total visitors
2,216

Forum statistics

Threads
2,276,188
Posts
28,968,163
Members
1,231,157
Latest member
hassano8787h
Back
Top