Results 1 to 10 of 11
Hybrid View
-
28th Aug 2010, 08:22 PM #1MemberWebsite's:
epicimagehost.comNot sure about this:
PHP Code:$lines = file_get_contents("config/file.php");
$lines = trim($lines);
$lines = str_replace("\n",'|',$lines); // Saw there is a newline.. Replace it with a '|'.
$lines = explode('|',$lines);
$numbers = array();
$letters = array();
foreach($lines as $char){
if(!is_numeric($char))
$letters[] = $char;
else
$numbers[] = $char;
}
unset($char,$lines);
if(!$numbers[0])
die('Couldnt find any numbers');
if(!$letters[0])
die('Couldnt find any letters');
$no_numbers = count($numbers);
$no_letters = count($letters);
if($no_numbers != $no_letters)
die('BOOGIEDIBOOE');
for($i=0;$i<$no_numbers;$i++){
echo '('.$numbers[$i].','.$letters[$i].')'); // Should echo "(1,a)"
}
If you do it like litewarez
PHP Code:$lines = file("config/file.php");
$letters = explode('|',$lines[0]);
$numbers = explode('|',$lines[1]);
unset($lines);
$no_letters = count($letters);
for($i=0;$i<$no_letters;$i++){
echo '('.$numbers[$i].','.$letters[$i].')');
}
Robin H Reviewed by Robin H on . HTML questions. Hi there ! My site has a stylesheet which is centering everything and looks okay. There are exceptions in centering which i manually fix and don't touch the css,but this time i have bigger problem. I have an input text fields.One is for subject,2nd for To,3rd is the Message. The Message field is the problem.It is 200px in height and the blink pointer is in the center (vertically),so i need it at the top.I tried stuff like vertical-align:top,padding:0 but it is still there.There's the Rating: 5
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Few questions about VPN's.
By jSx@ECD in forum Technical Help Desk SupportReplies: 15Last Post: 18th Jan 2012, 04:38 PM -
Questions about vps!
By xps15z in forum Hosting DiscussionReplies: 6Last Post: 4th Sep 2011, 09:58 AM -
(X)HTML, CSS slicing (6 years experience) | PSD to (X)HTML and CSS | Professional job
By Wamer in forum Completed TransactionsReplies: 8Last Post: 21st Jul 2010, 06:13 PM -
Few questions . . .
By nYXem in forum Webmaster DiscussionReplies: 8Last Post: 24th Jun 2010, 03:07 PM
themaPoster - post to forums and...
Version 5.38 released. Open older version (or...