pick up values of input ID's

-2

I have to do an auction system and I'm planning how to countdown multiple products at once, each with its number of seconds. I'm thinking of doing with PHP and jQuery. The problem is that I need to get the rest of the ID's from the elements pulled from the database by PHP. For example, I will make a list (for example) with php of 3 elements, each with the name:

  • minhaid_43231234
  • minhaid_99
  • minhaid_3023321

I need to get the numbers after myid _ being that I only know that in id will always have minhaid_

    
asked by anonymous 19.03.2016 / 17:59

1 answer

0

If it is only based on PHP you can make an explode to separate the miid _

<?php
$v = "minhaid_43231234";
echo explode("minhaid_", $v)[1];
?>
    
19.03.2016 / 21:13