$value['description'] = 1;
$array = ['a', 'b', 'c'];
if($value['description'] == 1) {
foreach($array as $item) {
echo $item;
}
}
PHP received mixed reviews due to lacking native Unicode support at the core language level.[32][33] In 2005, a project headed by Andrei Zmievski was initiated to bring native Unicode support throughout PHP, by embedding the International Components for Unicode (ICU) library, and representing text strings as UTF-16 internally.[34] Since this would cause major changes both to the internals of the language and to user code, it was planned to release this as version 6.0 of the language, along with other major features then in development.[35]
However, a shortage of developers who understood the necessary changes, and performance problems arising from conversion to and from UTF-16, which is rarely used in a web context, led to delays in the project.[36] As a result, a PHP 5.3 release was created in 2009, with many non-Unicode features back-ported from PHP 6, notably namespaces. In March 2010, the project in its current form was officially abandoned, and a PHP 5.4 release was prepared containing most remaining non-Unicode features from PHP 6, such as traits and closure re-binding.[37] Initial hopes were that a new plan would be formed for Unicode integration, but as of 2014 none have been adopted.
//AppServiceProvider.php
Validator::extend('current_password', function ($attribute, $value, $parameters, $validator) {
return Hash::check($value, auth()->user()->password);
}, "Неверный пароль, попробуйте еще раз!");
//controller
$validatedData = $request->validate([
'old_password' => 'required|string|current_password',
]);
//...
<form action="handler.php?form=1" method="post"></form>
<form action="handler.php?form=2" method="post"></form>
<form action="handler.php?form=3" method="post"></form>
<?= $_GET['form']; ?>
<?php if($styles == 0): ?>
<link href="/../../../../../../../assets/layouts/layout4/css/themes/default-rtl.min.css" rel="stylesheet" type="text/css" id="style_color" />
<?php endif; ?>
<?php if($styles == 1): ?>
<link href="/../../../../../../../assets/layouts/layout4/css/themes/light-rtl.min.css" rel="stylesheet" type="text/css" id="style_color" />
<?php endif; ?>
<span class="widget-thumb-body-stat" data-counter="counterup" data-value="100000">
<?= count($users); ?>
</span>