1

This my code and it doesnt concatenate at all.

${'dailystartend2'.$i} = explode("|",${"dailystartend".$i."[1]"});

What is the properway to do this? I cannot use array because exploding a string automtically convert into array.

0

1 Answer 1

2

for dynamic variables add string part in between {} and use like normal variables

${'dailystartend2'.$i} = explode("|",${"dailystartend".$i}[1]);
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.