Lounge<C++>

Today we're daydreaming about C++26 reflection
Nov 3, 2018 04:26
string x; scanf("%s", x); << like so
Nov 3, 2018 04:25
is there any way to scanf string?
 

PHP

Support group for those afflicted with PHP. Don't ask to ask, ...
Feb 19, 2018 22:41
test@test valid email?
Feb 19, 2018 22:34
@IROEGBU if i write test@test in email input it passed
Feb 19, 2018 22:32
@IROEGBU No it's not correct i get error, i need it because normal validation allow incorrect email format.
Feb 19, 2018 22:03
i want to add 'strict' => true to email validation input

code like that:

public function buildForm(FormBuilderInterface $builder, array $options) :void
{
$builder
->add('name', TextType::class, [ 'label' => 'Name' ])
->add('email', EmailType::class, [ 'label' => 'Email', 'strict' => true ]) <<<
.....
Feb 19, 2018 22:01
hi