I am developing an application were I need to use the next PHP5 code:
<?php
$Hurrengo_Hitza = 'word_3';
$Handiena_MarkID = 0;
$Handiena_Hitzarentzat = -2;
$Hitza_Index = substr($Hurrengo_Hitza , 5);
print $Handiena_MarkID . $Hitza_index . $Handiena_Hitzarentzat;
The result I am looking for is 0 3 -2 and the result I am getting is 0-2. Which is the problem?
This is just a minor case of typo and case sensitivity.
Notice in that line it says
$Hitza_indexand not$Hitza_Index. Since variables in PHP are case-sensitive, you need to change that to$Hitza_Index.