🔒 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
  • 351
    Views
  • 3
    Participants
Last reply from:
zeinab01

Trending Topics

Online now

Members online
1,185
Guests online
1,991
Total visitors
3,176

Forum statistics

Threads
2,293,823
Posts
29,086,879
Members
1,207,972
Latest member
elijahidris
Back
Top