How about using a separator character in your value attribute?
<option value="3_5" >3 Inches by 5 Inches</option>
Now that you come to learn these values ββin PHP, you can simply use explode() for the value to extract both of them.
$sizes = explode('_',$_POST['size']);
You will now have an array containing the divided values ββ-
array ( 0 => '3', 1 => '5', )
In this example, I selected the underscore character _ as my separator, but you can use any character you want.
Link -
source share