Author Topic: Counting lines  (Read 310 times)

0 Members and 1 Guest are viewing this topic.

Offline NLCJTopic starter

  • Enthusiast
  • Posts: 129
  • Gender: Male
    • View Profile
Counting lines
« on: September 09, 2010, 03:50:31 PM »
Hello,
I'm creating a program that analyzes information that is exported by another program. That program exports it in this way:
Value1 Value2 Value3 Value4
Value1 Value2...

In order to insert them in the database, I first have to know how many lines are inserted. They get send through HTML post. I already tried:
$lines explode("\n"$string);
$number_lines count($lines);


But this always results in 1. How do I fix this?

Regards,
Chris

Offline NLCJTopic starter

  • Enthusiast
  • Posts: 129
  • Gender: Male
    • View Profile
Re: Counting lines
« Reply #1 on: September 09, 2010, 04:45:12 PM »
I'm sorry, it seems that I've posted (again) in the wrong board. Won't happen again! ::)

Link to the topic in the right board (in case somebody finds this one):
http://www.phpfreaks.com/forums/index.php/topic,309621.0.html
« Last Edit: September 09, 2010, 04:46:15 PM by NLCJ »