Results 1 to 2 of 2

Thread: Format a string

  1. #1

    Thread Starter
    PowerPoster MidgetsBro's Avatar
    Join Date
    Oct 2000
    Location
    Apparently, Internet.com
    Posts
    3,125

    Format a string

    Does anyone know how to format a string in PHP like you can in VB?

    Format ("16250", "0,000")

    would return 16,250 in VB, but can't figure out the printf function in PHP.

    Thanks
    <removed by admin>

  2. #2

    Thread Starter
    PowerPoster MidgetsBro's Avatar
    Join Date
    Oct 2000
    Location
    Apparently, Internet.com
    Posts
    3,125
    n/m. I found the number_format function on the PHP site. Just had to try a different search query.
    <removed by admin>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width