I had installed Redis, Php and Php-Redis and now when i run this below program iam getting
<?php
//Connecting to Redis server on localhost
$redis = new Redis();
$redis->connect('127.0.0.1', 6379);
echo "Connection to server sucessfully";
//check whether server is running or not
echo "Server is running: "+ $redis->ping();
?>
The ideal output should be
Connection to server sucessfully Server is running: PONG
but the ouput iam get
Connection to server sucessfully
where could be the issue?
echo $redis->echo('ping');return 'ping'?