Solved

PHP versions of a line

Posted on 2007-03-21
2
189 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
website maintenance mode 1 25
Wordpress French and English Site 6 77
Number of reviews not counting correctly 2 22
PHP alternative to file_get_contents('php://input') 4 70
Generating table dynamically is the most common issue faced by php developers.... So it seems there is a need of an article that explains the basic concept of generating tables dynamically. It just requires a basic knowledge of html and little maths…
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
The viewer will learn how to dynamically set the form action using jQuery.
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…

828 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