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 8221905
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T14:05:49+00:00 2026-06-07T14:05:49+00:00

I am developing a runtime intelligence software program. It collects the version number of

  • 0

I am developing a runtime intelligence software program. It collects the version number of programs so you can then see the statistics for each version number. The problem I am having with this is that some computers are sending the actual version number (ie: 0.4) and others are sending an erroneous version number (ie: 0.4.0). I was wondering if it would be OK if I used something like:

$version = rtrim($version, ".0");

Would this work to get rid of this problem or what this just cause more problems later on down the road?

  • 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-06-07T14:05:52+00:00Added an answer on June 7, 2026 at 2:05 pm

    This absolutely can cause problems. rtrim strips those characters if they appear at the end of the string in any order and possibly multiple times. So 1.10 will become 1.1 but these are not necessarily the same version.

    See it online: ideone

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: Runtime exception, recursion too deep I'm getting a problem while developing a
In a program I'm developing I need to gather information about runtime errors. Currently,
I am developing a full-Flash site (Player 10.2). I need to know at runtime
I am developing a Math application which can be extended by writing python scripts.
I have got a runtime exception while developing an App. Here is my LogCat.
I'm developing a Baby Names app. I'm getting runtime exception while developing the App.
i am developing an application in which i add controls during runtime and to
I'm developing MVC3 project and have this situation. only at runtime. I'm using the
A little background I'm developing a large-scale JS app with ExtJS3. At runtime, the
I am developing a Java program using Eclipse that should exit with different codes

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.