compact example in php

Solutions on MaxInterview for compact example in php by the best coders in the world

showing results for - "compact example in php"
Ivan
22 Jul 2016
1$pavbhaji = "My favourite food";
2$burgur = "too yummy!";
3$kajukatri = 'too sweet';
4// it will convert variable into array
5$arr = compact("pavbhaji","burgur", 'kajukatri');
6echo '<pre>';
7print_r($arr);
similar questions
queries leading to this page
compact example in php