<?php

$t = "30 100";

echo str_replace(' ', '', $t);