خرید بک لینک

Vote count: 1

I am trying to refactor some of my code with arrays and what I have here is this

$body[] = array(
//array stuff part1 here

);

$body[] = array(
//another array stuff part2 here

);

$body[] = array(
//and another array stuff part3 here
);

now what I want to do is separate them into functions like this

part1();
part2();
part3();

and than assign variable to these functions back to the same stop..do I call it like this

$body[] = part1();

or can I call it like this

$body = part1();
$body = part2();
$body = part3();

if I do it like this will they override each other ?

asked 3 mins ago

برچسب: نویسنده: استخدام کار تاريخ: پنجشنبه 9 ارديبهشت 1395 ساعت: 0:12

صفحه بندی