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

  • Home
  • SEARCH
  • 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 8752291
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T13:12:18+00:00 2026-06-13T13:12:18+00:00

I use a radio button that gives me two variables concatenated and I need

  • 0

I use a radio button that gives me two variables concatenated and I need to separate them later. It gives me a time and a date in a format 11:30pm3, where 3 is the date and 11:30pm is the time. I can split it fine with my function but if the time is one digit, like 7:30pm for example, it throws things off. I can use military time but that’s not what I want.Is there a way to change this so it splits the string right after character “m” so it will work for am/pm, regardless of the length of the time being 7:00am or 07:00am. Thanks in advance.

$string = $Radio;   //This is the value I get 
$MeetTime = substr("$string", 0, 7); //Gives me 11:30am
$MeetDay  = substr("$string", 7, 2); //Gives me 2 
  • 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-13T13:12:19+00:00Added an answer on June 13, 2026 at 1:12 pm

    find out where the m is and do your logic on that

    if m is at 6 then its a full length one

    $loc = stripos($string,"m");
    

    if its at 5 then it’s short so adjust your split

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

Sidebar

Related Questions

I have two radio buttons on my MVC form that I use to hide
How would i get the value of a radio button and use that in
I need to dynamically generate radio or checkbox by jQuery. I use the following
I've got the value of a radio button (r1) and I'm trying to use:
I am having a problem with a radio button that is in a radio
I am making my activity in such a way that radio button is at
There's a bug in Windows Chrome that makes a radio button's background turn white
I am trying to create a single-choice (e.g., radio button) list of items that
I'm trying to use a radio button as a click function: $(input[type=radio]).click(function(){ and I
I have a single form that, depending on which radio button is clicked (Login

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.