Skip to content

Instantly share code, notes, and snippets.

View aburakovskiy's full-sized avatar

Alexander Burakovskiy aburakovskiy

  • Ukraine
View GitHub Profile
@aburakovskiy
aburakovskiy / gist:086679b790a9032d655230259565b442
Last active December 10, 2018 15:02 — forked from burakerdem/gist:1007450
PHP: ucwords() for UTF-8 strings
<?php
if (!function_exists('mb_ucwords')) {
function mb_ucwords($str, $delimiters = [" ", "\t", "\r", "\n", "\f", "\v"])
{
foreach ($delimiters as $delimiter) {
$words = explode($delimiter, $str);
$newwords = [];
foreach ($words as $word) {
$word = mb_ucfirst($word, "UTF-8");
"education":{
"properties":{
"startDate":{
"format":"dateOptionalTime",
"type":"date",
"index":false
},
"endDate":{
"format":"dateOptionalTime",
"type":"date",
GET person/person/_search?request_cache=false
{
"from":0,
"size":0,
"_source":"*",
"query":{
"bool":{
"must":[
],