Skip to content

Instantly share code, notes, and snippets.

View bobbyaxe74's full-sized avatar
💭
Available

Bobby Axe bobbyaxe74

💭
Available
View GitHub Profile
@bobbyaxe74
bobbyaxe74 / docker-help.md
Created September 7, 2020 20:40 — forked from bradtraversy/docker-help.md
Docker Commands, Help & Tips

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info

@bobbyaxe74
bobbyaxe74 / phpWordCountWords.php
Last active March 25, 2019 03:49 — forked from Anexo/phpWordCountWords.php
Read in a docx, save into variable and count the words. Word 2007 format only.
<?php
function CountWords($source, $source_extension)
{
//add supported formarts to array
$supported_extensions = array('docx','doc');
if (in_array($source_extension, $supported_extensions)){
\PhpOffice\PhpWord\Settings::setOutputEscapingEnabled(true);
$phpword = \PhpOffice\PhpWord\IOFactory::load($source);