Solved

PHP versions of a line

Posted on 2007-03-21
2
192 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

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…
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
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…

734 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