Skip to content

Function to create a list of phrases based on 2 arrays and a template phrase. Used to create keywords for Adwords.

Notifications You must be signed in to change notification settings

joeylevy/php-phrase-builder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

php-phrase-builder

Function to create a list of phrases based on 2 arrays and a template phrase. Used to create keywords for Adwords.

Needed a way to create a phrase and substitute in 2 places. for example:

array 1: pizza, milk, apple, soda

array 2: Arizona, Alaska, California

Phrase: Best {1} in {2}

Result is 12 phrases like: Best pizza in Arizona, Best Pizza in Alaska ... Best Soda in California

I used it to create a bunch of 1000+ block of phrases for adwords.

Usage

Set up 2 arrays in PHP

Create phrase

combine phrases using function

display or create csv with resulting csv

About

Function to create a list of phrases based on 2 arrays and a template phrase. Used to create keywords for Adwords.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages