neo4j how to return all property of shortest path in php

$query = ‘MATCH path=(n:UsrInfo)-[]-(m:GroupInfo)
RETURN [x in nodes(path) | x.Fname] as Fnames, [y in nodes(path) | y.Lname] as Lnames, [z in relationships(path) | z.Status] as Statuss’;
Output :

Array
(
    [0] => Array
        (
            [0] => Alok
            [1] => 
        )

    [1] => Array
        (
            [0] => Kumar
            [1] => 
        )

    [2] => Array
        (
            [0] => 0
        )

)
Advertisements