The PHP increment operator isnt working in my code, i dont know why. Here it is my code:
for(var j=0; j<=COUNTLatitud;j++) {
<?php  $incremento=0; ?>
valor1=<?php echo (float)$Latitud[$incremento];?>;
valor2=<?php echo (float)$Longitud[$incremento];?>; 
point = new google.maps.LatLng(<valor1,valor2);         
<?php $incremento=$incremento+1; ?>     
iconoMarcador = new google.maps.MarkerImage( 'https://dl.dropboxusercontent.com/s/d4x1b4qtqhbvfwn/office-building.png', new google.maps.Size(32, 37), new google.maps.Point(0,0), new google.maps.Point(9, 34) );
    if( google.maps.geometry.poly.containsLocation( point, miPoligono ) ) {                 
        marcador = new google.maps.Marker( {
        map: miMapa,
        position: point,
        icon: iconoMarcador
        } );
    }
}
Im using JavaScript + PHP, when i make a console.log(j) the for is working properly.
(The variables are declare above)
Any leads? i want to cry.
 
                        
Ok, i managed my problem this way:
I hope help some one :)