PHP pergmatch
Use regular expression to get a substring from a content.
<?php
$preg='/SOME TEXT A(.*?)SOME TEXT B/is';
preg_match($preg,$snoopy->results,$match);
$result = $match[1];
Use regular expression to get a substring from a content.
<?php
$preg='/SOME TEXT A(.*?)SOME TEXT B/is';
preg_match($preg,$snoopy->results,$match);
$result = $match[1];
I’ve be planning to work on this project for a long time. Laravel has a feature php artisan
which is very helpful for developers. I really want to add the “generator” feature for ThinkPHP. which is a very popular framework in China.
First of all you’ll need to config everything right in your production.ini or development.ini of your CKAN site.
Follow the guide here Installing CKAN from Source and build Python virtual environment for you site.
Then you can get your hands dirty.
This is the note I write here based on my own practices.
I found this useful php code snippet on the internet.
And post here for future use and remind.
Semantic is a UI Component library implemented using a set of specifications designed around natural language.
This is the first post I write here. Congratulations for my jekyll Blog.