Canno split match->title in customized matches.php
-
Hi guys,
I’m using LMgr 3.9 and I’ve created a custom “matches.php” template.
in principle this is showing only matches of latest match_day for defined league_id fetched from the shortcode BUT here is my dilemma…
I want to use a different table format i.e. rows as follows:
Lions 0-0 Tigers
Hawks 3-2 Hippos
Reds 5-0 Pinks…where Hawks is my team
To build this I’m using explode PHP func usongwith match->title to split home from away teams but this as follows
<?php $Teams=explode('–', $match->title) ?>
but $Teams[1] comes with team name but with a comma in front
e.g
echo $Teams[0] returns ‘Hawks’ (not bold???)
echo $Teams[1] returns ‘;Hippos’ (comma in pos 0)any suggestion?
Many thanks
- The topic ‘Canno split match->title in customized matches.php’ is closed to new replies.