Forum Moderators: coopster

Message Too Old, No Replies

Find the length of the string and put it in an array

         

Madhu

4:24 am on Aug 30, 2007 (gmt 0)

10+ Year Member



Hai everybody

I want to find the length of the string.That i did by using strlen().now i want to put it in an array ..

Help plz..

Madhu

Madhu

4:27 am on Aug 30, 2007 (gmt 0)

10+ Year Member



Actually i want to find the width of the column size.

Madhu

4:28 am on Aug 30, 2007 (gmt 0)

10+ Year Member



i want to find which one of the array is larger size

eelixduppy

4:39 am on Aug 30, 2007 (gmt 0)



Can you please describe what you are trying to achieve? It is hard to follow your questions. Give an example if you have to.

Madhu

5:08 am on Aug 30, 2007 (gmt 0)

10+ Year Member



in my php file my coding is

$message .="*"."S.No Name of section Your score Max score"."*\n";

$message .=F_UserTestResultStatMailMessage($test_id, $user_id);

In the above function,it will return

$tableScore .= "".$i." "." ".$jms['subject_name']." ".$usrsectiondata['score'] ." "."15\n";

Habtom

5:12 am on Aug 30, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I found it quite difficult to understand what you are trying to achieve.

Madhu

5:12 am on Aug 30, 2007 (gmt 0)

10+ Year Member



here $i is the serial number
$jms['subject_name'] is the subject name
$usrsectiondata['score'] is the score of the user
"[15 Max.marks] is the maximun mark of the user

here i want to align the structure.
I cant able to use the  
because i am not using html
only in the text format it have to be aligned

Madhu

5:15 am on Aug 30, 2007 (gmt 0)

10+ Year Member



hai habtom do u remember me?
U helped me more in this forum..
Plz help me in this also

I want to align the above structure in the table format.
But I cant use <table> tag becoz i am not using html

Habtom

5:38 am on Aug 30, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



But I cant use <table> tag becoz i am not using html

It seems you will now.

tableScore .= "".$i." "." ".$jms['subject_name']." ".$usrsectiondata['score'] ." "."15\n";

You might need to go for something like this:

tableScore = "<table>";
tableScore .= "<tr><td>".$i." "."</td><td> ".$jms['subject_name']."</td><td>".$usrsectiondata['score'] ."</td><td>"."15\n"."</td></tr>";
tableScore .= "</table>";

Habtom

Madhu

5:43 am on Aug 30, 2007 (gmt 0)

10+ Year Member



actually i want to send mail without using html tags .