Answer the question
In order to leave comments, you need to log in
How to translate bitwise shift operation from C++ to Php?
Friends,
good afternoon.
In C++ there is such an expression ;
x = "abc def" ;
x >> a >> b ;
// в результате
а == "abc" ;
b == "def" ;
Answer the question
In order to leave comments, you need to log in
This is not a bitwise operation. This is an overloaded stream operator:
www.cplusplus.com/reference/istream/istream/operat...
In php use php.net/manual/en/function.explode.php
<?php
$x = "abc def" ;
$array = explode(" ", $x);
var_dump($array);
/*
array(2) {
[0]=> string(3) "abc"
[1]=> string(3) "def"
}
*/
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question