FareedR
2 months ago
498
4
Laravel

How can I iterate imploded data with another imploded data ?

Posted 2 months ago by FareedR
// database

// stocks 
id | name | time_frame | signal
1       test	3,5			test1,test2


//expected result 
3 : test1
    +
5 : test 2

// current result ( because idk how to iterate another imploded data ) 
test1
   +
test2

// blade
<p style="font-size:15.5px; color:black; font-weight:900;">
	{!! str_replace('+', '<br /> <span style="padding-left:10px;">+</span> <br />', $stock->signal) !!}
</p>
	

Please sign in or create an account to participate in this conversation.