Well my English is too bad to explain what i want but i will try
There are some very big multiline string - part of sql query
$q =
"Values
(
'$($line.'common.uuid')',
'$($line.'user.user_id')',
'$($line.'user.ldap.user_attributes.displayName')',
'$($line.'user.email_address')',
'$($line.'common.owner')',
'$($line.'common.current_phone_number')',
'$($line.'common.current_country_name')',
)"
That string is very hard to edit Are there any way to do like that in simple way? Or only something like foreach $field in $fields?
$fields = '
common.uuid
user.user_id
user.ldap.user_attributes.displayName
user.email_address
.....'
$q = '(
$line.($fields somehow here)
)'
There can be about 100 lines of values and its much easier to edit that list in $fields instead of $q
Thanks!