Skip to content

Instantly share code, notes, and snippets.

<?php
/**
*
* This file is part of the phpBB Forum Software package.
*
* @copyright (c) phpBB Limited <https://www.phpbb.com>
* @license GNU General Public License, version 2 (GPL-2.0)
*
* For full copyright and license information, please see
* the docs/CREDITS.txt file.
$('[data-ajax]').each(function() {
var $this = $(this),
ajax = $this.attr('data-ajax'),
filter = $this.attr('data-filter'),
fn;
if (ajax !== 'false') {
fn = (ajax !== 'true') ? ajax : null;
filter = (filter !== undefined) ? phpbb.getFunctionByName(filter) : null;
<?php
$ary = array();
for ($i = 0; $i < 1000; $i++)
{
$ary[] = 1;
foreach ($ary as &$value)
{
$value = 2;
sizeof($ary);
<?php
/**
*
* @package phpBB3
* @copyright (c) 2014 phpBB Group
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
*
*/
/**
@prototech
prototech / confusables_test.php
Created June 3, 2012 03:04
Confusables test
<?php
define('IN_PHPBB', true);
$phpbb_root_path = './';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
$homographs = include($phpbb_root_path . 'includes/utf/data/confusables.' . $phpEx);
$i = 1;
foreach ($homographs as $from => $to)