Skip to content

hon84.work

An coding monkey who reject all your request

Category: Uncategorized

Regexp for re-phasing input name from dot notation

preg_replace('/\.([a-z0-9$\_]+)/im', '[${1}]', $field);
// a.b.c => a[b][c]

`

Author honPosted on November 23, 2023Categories UncategorizedTags html input, regexpLeave a comment on Regexp for re-phasing input name from dot notation

Recent Posts

  • Regexp for re-phasing input name from dot notation
  • Supervisor config for laravel queue
  • [PHP] Configuration for file upload
  • [PHP] xdebug
  • vscode configurations

Categories

  • configs
  • JavaScript
  • MySQL
  • nginx
  • php
  • snippets
  • Uncategorized

Archives

  • November 2023
  • September 2019
  • August 2019
  • July 2019

Tags

  • Bootstrap
  • git
  • html input
  • JavaScript
  • larave
  • laravel
  • Modal
  • mysql
  • NGINX
  • php
  • regexp
  • shell
  • sql
  • supervisord
  • timezone
  • upload
  • utils
  • vscode
  • xdebug
hon84.work Proudly powered by WordPress