number format function arguments

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • phpmagesh
    New Member
    • Nov 2008
    • 119

    number format function arguments

    Hi

    Can any one help me in this please,
    Code:
    number_format((float)strip_tags($order->totals[4][text]),2,',','');
    why they used that 2, ',','' at the number format function, since i dont know that function exactly whats it does,

    Regards
    magesh
  • dlite922
    Recognized Expert Top Contributor
    • Dec 2007
    • 1586

    #2
    Did you read the manual?

    PHP: strip_tags - Manual
    PHP: number_format - Manual

    Let me know if your still not sure why.



    Dan
    "Learning is a journey, please embrace it. "

    Comment

    • phpmagesh
      New Member
      • Nov 2008
      • 119

      #3
      Originally posted by dlite922
      Did you read the manual?

      PHP: strip_tags - Manual
      PHP: number_format - Manual

      Let me know if your still not sure why.



      Dan
      "Learning is a journey, please embrace it. "
      Hi thank you dude,

      I got what that function means and learned some more functions too..


      Regards
      magesh

      Comment

      • dlite922
        Recognized Expert Top Contributor
        • Dec 2007
        • 1586

        #4
        Originally posted by phpmagesh
        Hi thank you dude,

        I got what that function means and learned some more functions too..


        Regards
        magesh
        Glad you're learning!

        Comment

        • Markus
          Recognized Expert Expert
          • Jun 2007
          • 6092

          #5
          Hey phpmagesh,

          I have changed the title of your thread to better explain it. This helps others who are searching the forum for a similar problem (or google, etc.) find this thread. Please use as descriptive a title as possible.

          Thanks,
          Moderator.

          Comment

          • phpmagesh
            New Member
            • Nov 2008
            • 119

            #6
            Ya thank you markus, you are always in rite path.

            Regards
            magesh

            Comment

            Working...