Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
how to? get string on line#
Old 07-20-2009, 08:14 PM how to? get string on line#
Experienced Talker

Posts: 41
Trades: 0
how to? get string on line# from a file
so far the only thing i could find on this loops me threw every line, i would like for it to target a line instayed, thanks

Nevermind the command i needed was linenum

Last edited by flatrat; 07-20-2009 at 09:37 PM.. Reason: solved
flatrat is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-21-2009, 01:25 AM Re: how to? get string on line#
Novice Talker

Posts: 7
Trades: 0
example:
$arr = file(...file path...); //read file to array (each line to cell)
echo $arr[10]; // print line#11
__________________

Please login or register to view this content. Registration is FREE
for health, herbs articles
futurant is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to how to? get string on line#
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.18963 seconds with 12 queries