需要你的帮助,我已经为数据库插入了值,但是当我编辑所有值时都没有显示。这是我的代码:
<?php
$explode_values = explode(",",@$checkpointvalues[$checkpoint['id']]['description']); ?>
{!! Form::select($checkpoint['id'].'_c[]', isset($error_messages[$checkpoint['id']])?$error_messages[$checkpoint['id']] : array(), $explode_values, array('multiple'=>'true', 'class'=>'form-control js-example-tags select2','id'=>$checkpoint['id'].'_c')) !!}
var_dump($explode_values);die;
: -
array (size=4)
0 => string 'blue' (length=4)
1 => string 'green' (length=5)
2 => string 'yellow' (length=6)
3 => string 'zzzzzzzzzz' (length=10)
但仅显示用户界面: -
0 => string 'blue' (length=4)
1 => string 'green' (length=5)
2 => string 'yellow' (length=6)