PHP expert |
|
<?php
$sDeNaam = 'denaam';
$iLength = strlen($sDeNaam);
foreach($_POST as $sKey => $sValue)
{
if(substr($sKey,0,$iLength-1) == $sDeNaam)
{
$sDeVariabele= substr($sKey,$iLength);
break;
}
}
<?php $sDeNaam = 'denaam'; foreach($_POST as $sKey => $sValue) { if(substr($sKey,0,$iLength-1) == $sDeNaam) { $sDeVariabele= substr($sKey,$iLength); break; } }
|