How to wrap column headings ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • steelman
    New Member
    • Dec 2006
    • 1

    How to wrap column headings ?

    When submitting a query from PHP code and using ezpdf to generate the output in PDF format. Is is possible to wrap the column headings ?

    e.g

    Select FiistName AS 'First Name'
    From Names
    Where FirstName = 'Smith'

    Output

    First Name
    Smith

    Desired output
    First
    Name
    Smith
  • mainul
    New Member
    • Sep 2006
    • 51

    #2
    Originally posted by steelman
    When submitting a query from PHP code and using ezpdf to generate the output in PDF format. Is is possible to wrap the column headings ?

    e.g

    Select FiistName AS 'First Name'
    From Names
    Where FirstName = 'Smith'

    Output

    First Name
    Smith

    Desired output
    First
    Name
    Smith


    Try it out:

    [PHP]<? $text = "A very long woooooooooooord .";
    $newtext = wordwrap($text, 8, "\n", 1);
    echo "$newtext\n ";
    ?>[/PHP]

    Mainul

    Comment

    Working...