seopti
asked on
PHP Echo array question
Having a hard time to echo $agentsStuff within this line of code:
schema (echo $agentsStuff[bizID]1,10);
ASKER
I have a bizID for each business in the database which I can echo with:
<?php echo $agentsStuff['bizID'];?>
Now I've installed an addon which adds schema org. It is printed this way:
<?php schema('someItemID'); //print schema.org rich snippets ?>
What I would like to do is to echo the bizID as someItemID. I tried this for a few hours without success.
<?php echo $agentsStuff['bizID'];?>
Now I've installed an addon which adds schema org. It is printed this way:
<?php schema('someItemID'); //print schema.org rich snippets ?>
What I would like to do is to echo the bizID as someItemID. I tried this for a few hours without success.
I tried this for a few hours without success.Don't waste your time like that. Just work with me.
Please run this PHP instruction and post the output here, thanks.
<?php var_dump($agentsStuff);
ASKER
When I do var_dump on $agentsStuff I get:
array(30) { [0]=> string(6) "624082" ["bizID"]=> string(6) "624082" [1]=> string(9) "Attorneys" ["bizCatSub"]=> string(9) "Attorneys" [2]=> .....
And there is the bizID which I need echoed as someItemID.
array(30) { [0]=> string(6) "624082" ["bizID"]=> string(6) "624082" [1]=> string(9) "Attorneys" ["bizCatSub"]=> string(9) "Attorneys" [2]=> .....
And there is the bizID which I need echoed as someItemID.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Open in new window