Solved

PHP versions of a line

Posted on 2007-03-21
2
191 Views
Last Modified: 2012-05-05
What is the php version of this line?

 for $i = LBound($NormalRecords,2) to UBound($NormalRecords,2) {
0
Comment
Question by:pingeyeg
2 Comments
 
LVL 49

Accepted Solution

by:
Roonaan earned 125 total points
ID: 18763964
I think you can use foreach. I am not sure what the ,2 means in ASP though.

foreach($NormalRecords as $key => $value) {
}

-r-
0
 
LVL 14

Assisted Solution

by:ygoutham
ygoutham earned 125 total points
ID: 18765622
i am assuming the following.

$NormalRecords is an array with n elements.  You want to access the third element (counting starts with 0)

$counter = count($NormalRecords);
echo "Sno  Record Value is the third element";
//just giving the echo logic in the next statement
for($i=0;$i<$counter;$i++){

echo "$i  ".  $NormalRecords[2] . "is the third element<br>";
}
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
php56-php-mcrypt for rhel7 php56 1 100
pass foreach data in php into jquery ajax 10 45
$_GET call between URL 3 37
if statement malfunction 5 16
I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
These days socially coordinated efforts have turned into a critical requirement for enterprises.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

713 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question