char *pointer = "Hello";
*pointer++;
Above code is in C language, What would be its equivalent PHP code?
char *pointer = "Hello";
*pointer++;
Above code is in C language, What would be its equivalent PHP code?
There are no pointers in PHP. You can access several chars of a string using the [] operator. (manual) The following code might do what you need:
$string = "Hello";
$position = 0;
$char0 = $string[$position];
$char1 = $string[++$position];