You're using the wrong operator for concatenation. In php, the concatenation operator is a period/dot: .
So your code should be:
echo "accId = " . $accIdd;
A plus sign +
is the concatenation operator in JavaScript.
Using the +
here means you're actually adding things together, not concatenating, so PHP is thinking blah + 643etc = 643
.