Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 612763
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T17:55:42+00:00 2026-05-13T17:55:42+00:00

There are number ‘2352362361 ‘, as it is separated by spaces from the end

  • 0

There are number ‘2352362361 ‘, as it is separated by spaces from the end of 3 characters?
The output should obtain ‘2 352 362 361 ‘

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T17:55:42+00:00Added an answer on May 13, 2026 at 5:55 pm

    If you have that number as a string :

    $str = '2352362361 ';
    

    You can first convert that string to an integer, using intval :

    $int = intval($str);
    

    And, then, use number_format on that integer :

    echo number_format($int, 0, '.', ' ');
    

    And you get :

    2 352 362 361
    

    (If the space at the end was intentional, you can add it back if necessary)

    And number_format will also work even if you pass it the string without converting it to an integer first :

    $str = '2352362361 ';
    echo number_format($str, 0, '.', ' ');
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Sorry i'm a beginner,from what i know there are number of varieties of libraries
When user logs in there are number of attributes I need to retrieve from
Is there a way (in .NET) of removing trailing zeros from a number when
There are number of records which I gather them from mysql say thease: id
I have an images array in which there are number of images. Not fixed,
Here is the jsfiddle for what I was testing http://jsfiddle.net/5hhRF/ there is number 1
There are a number of examples out there but yet I can't seem to
There are a number of JSON libraries available for Erlang, and it's not clear
Is there a maximum number of email addresses that can be included in a
Is there a maximum number of trace sources for app.config, and by definition listeners

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.