<?php
function button($text, $value, $col = 6, $row = 1, $color = "#ffffff", $size = 'large', $type = 'reply'){
return [
'Columns' => $col,
'Rows' => $row,
'Text' => '<font color="'.$color.'"><b>'.$text.'</b></font>',
'BgColor' => "#30cecb",
'TextVAlign' => 'middle',
'TextHAlign' => 'middle',
'TextSize' => $size,
'ActionType' => $type,
'ActionBody' => $value,
];
}
print_r(button(text:'Text here', color:'#333333', value:'value here'));
preferences:
26.87 ms | 402 KiB | 5 Q