lombax85/create_function 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

lombax85/create_function

最新稳定版本:1.0.3

Composer 安装命令:

composer require lombax85/create_function

包简介

A replacement for the function create_function for PHP 8

README 文档

README

This repository contains a replacement for the function create_function that has been removed from PHP 8

This is a first beta version with some limitations

Installation

composer require lombax85/create_function

Usage

// Simple function
$f = create_function('$a,$b', 'return $a+$b;');
echo $f(1,2); // prints 3

// pass by reference
$f = create_function('&$a', '$a++;');
$a = 1;
$f($a);
echo $a; // prints 2

统计信息

  • 总下载量: 669
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 4
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 4
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-04-17