.container {
position: relative;
width: 400px;
height: 400px;
overflow: hidden;
border: 1px solid #000;
}
.scroll {
position: relative;
box-sizing: border-box;
width: 420px;
max-height: 400px;
padding-right: 20px;
overflow-y: scroll;
} <?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/function same_chars($first, $second)
{
$len = min(strlen($first), strlen($second));
$matched = 0;
for ($i = 0; $i < $len; ++$i) {
if ($first[$i] === $second[$i]) {
++$matched;
} else {
break;
}
}
return $matched;
}
var_dump(same_chars('9089102110', '90856')); // 3
@app-themed-default: #1bbae1;
@app-themed-dark-default: #394263;
@app-themed-night: #888888;
@app-themed-dark-night: #333333;
@app-themed-amethyst: #af64cc;
@app-themed-dark-amethyst: #583a63;
@app-themed-modern: #46b7bf;
@app-themed-dark-modern: #3b3f40;
@app-themed-autumn: #e67e22;
@app-themed-dark-autumn: #4a392b;
@app-themed-flatie: #1ec1b8;
@app-themed-dark-flatie: #32323a;
@app-themed-spring: #27ae60;
@app-themed-dark-spring: #344a3d;
@app-themed-fancy: #d9416c;
@app-themed-dark-fancy: #352b4e;
@app-themed-fire: #e74c3c;
@app-themed-dark-fire: #4a2e2b;